[resumes][feat] Update resume top nav bar (#344)

* [resumes][feat] Update resume top nav bar

* [portal][fix] convert number to Month type
This commit is contained in:
Keane Chan
2022-10-09 22:26:23 +08:00
committed by GitHub
parent 53433787eb
commit c252f57bd5
3 changed files with 7 additions and 12 deletions

View File

@ -3,14 +3,14 @@ import type { TypeaheadOption } from '@tih/ui';
import { HorizontalDivider } from '@tih/ui';
import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead';
import type { MonthYear } from '~/components/shared/MonthYearPicker';
import type { Month, MonthYear } from '~/components/shared/MonthYearPicker';
import MonthYearPicker from '~/components/shared/MonthYearPicker';
export default function HomePage() {
const [selectedCompany, setSelectedCompany] =
useState<TypeaheadOption | null>(null);
const [monthYear, setMonthYear] = useState<MonthYear>({
month: new Date().getMonth() + 1,
month: (new Date().getMonth() + 1) as Month,
year: new Date().getFullYear(),
});