mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
add optimistic update for favorite/ratings mutations
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import type { MantineColorsTuple, MantineThemeOverride } from '@mantine/core';
|
||||
|
||||
import { generateColors } from '@mantine/colors-generator';
|
||||
import { createTheme, rem } from '@mantine/core';
|
||||
import { createTheme, Loader, rem } from '@mantine/core';
|
||||
import merge from 'lodash/merge';
|
||||
|
||||
import { Spinner } from '/@/shared/components/spinner/spinner';
|
||||
import { AppThemeConfiguration } from '/@/shared/themes/app-theme-types';
|
||||
|
||||
// const lightColors: MantineColorsTuple = [
|
||||
@@ -43,6 +44,14 @@ const mantineTheme: MantineThemeOverride = createTheme({
|
||||
xl: '88em',
|
||||
xs: '36em',
|
||||
},
|
||||
components: {
|
||||
Loader: Loader.extend({
|
||||
defaultProps: {
|
||||
loaders: { ...Loader.defaultLoaders, spinner: Spinner as any },
|
||||
type: 'spinner',
|
||||
},
|
||||
}),
|
||||
},
|
||||
cursorType: 'pointer',
|
||||
defaultRadius: 'sm',
|
||||
focusRing: 'never',
|
||||
|
||||
Reference in New Issue
Block a user