mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-24 10:32:01 +08:00
[resumes][feat] add helpful text when no resume shown
This commit is contained in:
@@ -139,3 +139,13 @@ export const SHORTCUTS: Array<Shortcut> = [
|
||||
sortOrder: 'latest',
|
||||
},
|
||||
];
|
||||
|
||||
export const isInitialFilterState = (filters: FilterState) =>
|
||||
Object.keys(filters).every((filter) => {
|
||||
if (!['experience', 'location', 'role'].includes(filter)) {
|
||||
return true;
|
||||
}
|
||||
return INITIAL_FILTER_STATE[filter as FilterId].every((value) =>
|
||||
filters[filter as FilterId].includes(value),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user