mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 05:02:52 +08:00
[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:
@ -2,16 +2,11 @@ import type { ProductNavigationItems } from '~/components/global/ProductNavigati
|
||||
|
||||
const navigation: ProductNavigationItems = [
|
||||
{
|
||||
children: [
|
||||
{ href: '#', name: 'Technical Support' },
|
||||
{ href: '#', name: 'Sales' },
|
||||
{ href: '#', name: 'General' },
|
||||
],
|
||||
href: '#',
|
||||
name: 'Inboxes',
|
||||
children: [],
|
||||
href: '/resumes',
|
||||
name: 'Browse',
|
||||
},
|
||||
{ children: [], href: '#', name: 'Reporting' },
|
||||
{ children: [], href: '#', name: 'Settings' },
|
||||
{ children: [], href: '/resumes/submit', name: 'Submit for review' },
|
||||
];
|
||||
|
||||
const config = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Select } from '@tih/ui';
|
||||
|
||||
type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
||||
export type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
||||
|
||||
export type MonthYear = Readonly<{
|
||||
month: Month;
|
||||
|
@ -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(),
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user