[questions][fix] fix import errors

pull/384/head
Jeff Sieu 3 years ago
parent a5b11d219a
commit e0d9d7f392

@ -26,7 +26,7 @@ import {
} from '~/utils/questions/useSearchFilter';
import { trpc } from '~/utils/trpc';
import { SortOrder, SortType } from '~/types/questions';
import { SortOrder, SortType } from '~/types/questions.d';
export default function QuestionsHomePage() {
const router = useRouter();

@ -5,7 +5,7 @@ import { TRPCError } from '@trpc/server';
import { createProtectedRouter } from './context';
import type { Question } from '~/types/questions';
import { SortOrder, SortType } from '~/types/questions';
import { SortOrder, SortType } from '~/types/questions.d';
const TWO_WEEK_IN_MS = 12096e5;

@ -20,7 +20,7 @@ export type AggregatedQuestionEncounter = {
companyCounts: Record<string, number>;
locationCounts: Record<string, number>;
roleCounts: Record<string, number>;
}
};
export type AnswerComment = {
content: string;
@ -54,9 +54,9 @@ export type QuestionComment = {
export enum SortOrder {
ASC = 'asc',
DESC = 'desc',
};
}
export enum SortType {
TOP,
NEW,
};
}

Loading…
Cancel
Save