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:
schroda
2023-11-25 18:13:51 +01:00
committed by GitHub
parent 5aa7fc0f9f
commit 47b077cbf5
6 changed files with 707 additions and 659 deletions

View File

@@ -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)}

View File

@@ -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;
}

View File

@@ -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>>;