[resumes][fix] Change default shortcut to general (#540)

pull/541/head
Su Yin 2 years ago committed by GitHub
parent 6db6c5f3c3
commit a81364e1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,7 +106,7 @@ export default function ResumeHomePage() {
'',
);
const [shortcutSelected, setShortcutSelected, isShortcutInit] =
useSearchParams('shortcutSelected', 'Unreviewed');
useSearchParams('shortcutSelected', 'General');
const [currentPage, setCurrentPage, isCurrentPageInit] = useSearchParams(
'currentPage',
1,

@ -97,7 +97,7 @@ export const EXPERIENCES: Array<TypeaheadOption> = [
export const INITIAL_FILTER_STATE: FilterState = {
experience: [],
isTop10: false,
isUnreviewed: true,
isUnreviewed: false,
location: [],
role: [],
};
@ -106,7 +106,6 @@ export const SHORTCUTS: Array<Shortcut> = [
{
filters: {
...INITIAL_FILTER_STATE,
isUnreviewed: false,
},
name: 'General',
sortOrder: 'latest',
@ -129,7 +128,6 @@ export const SHORTCUTS: Array<Shortcut> = [
value: 'entry-level',
},
],
isUnreviewed: false,
},
name: 'Fresh Grad',
sortOrder: 'latest',
@ -138,7 +136,6 @@ export const SHORTCUTS: Array<Shortcut> = [
filters: {
...INITIAL_FILTER_STATE,
isTop10: true,
isUnreviewed: false,
},
name: 'Top 10',
sortOrder: 'popular',
@ -146,7 +143,6 @@ export const SHORTCUTS: Array<Shortcut> = [
{
filters: {
...INITIAL_FILTER_STATE,
isUnreviewed: false,
location: [
{
id: '231',

Loading…
Cancel
Save