Feature/update dependencies (#477)
* Remove accidentally committed script * Update dependencies * [ESLint] Fix issues * Remove unnecessary "??" operator * Update "vite" to v5.x * Disable "no default export" rule in vite config
This commit is contained in:
@@ -65,8 +65,8 @@ export function MobileBottomBar({ navBarItems }: IProps) {
|
||||
location.pathname === path
|
||||
? 'primary.main'
|
||||
: theme.palette.mode === 'dark'
|
||||
? 'grey.A400'
|
||||
: 'grey.600',
|
||||
? 'grey.A400'
|
||||
: 'grey.600',
|
||||
}}
|
||||
>
|
||||
{t(title)}
|
||||
|
||||
@@ -53,8 +53,8 @@ const compareSourcesBySearchResult = (
|
||||
sourceB: ISource,
|
||||
sourceToFetchedStateMap: SourceToLoadingStateMap,
|
||||
): -1 | 0 | 1 => {
|
||||
const isSourceAFetched = !sourceToFetchedStateMap.get(sourceA.id)?.isLoading ?? true;
|
||||
const isSourceBFetched = !sourceToFetchedStateMap.get(sourceB.id)?.isLoading ?? true;
|
||||
const isSourceAFetched = !sourceToFetchedStateMap.get(sourceA.id)?.isLoading;
|
||||
const isSourceBFetched = !sourceToFetchedStateMap.get(sourceB.id)?.isLoading;
|
||||
if (isSourceAFetched && !isSourceBFetched) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ export type RecursivePartial<T> = {
|
||||
[P in keyof T]?: T[P] extends (infer U)[]
|
||||
? RecursivePartial<U>[]
|
||||
: T[P] extends object | undefined
|
||||
? RecursivePartial<T[P]>
|
||||
: T[P];
|
||||
? RecursivePartial<T[P]>
|
||||
: T[P];
|
||||
};
|
||||
|
||||
export type OptionalProperty<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
||||
|
||||
Reference in New Issue
Block a user