-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: speed up init cold start load.
remove unused deps. add vite rollup options to split chunks. replace global loader with sira loader.
- Loading branch information
Showing
5 changed files
with
27 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import type { FC } from 'react'; | ||
|
||
import { JellyTriangle } from '@uiball/loaders'; | ||
import { useMantineTheme } from '@mantine/core'; | ||
|
||
interface Props { | ||
size?: number; | ||
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; | ||
} | ||
|
||
export const Loader: FC<Props> = ({ size }) => { | ||
const theme = useMantineTheme(); | ||
return <JellyTriangle size={size ?? 60} speed={2} color={theme.colors.brand[5]} />; | ||
export const Loader: FC<Props> = ({ size = 'md' }) => { | ||
return ( | ||
<div className={`${size} loader primary`}> | ||
<div className="bar-bounce" /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a78086c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
meilisearch-ui – ./
meilisearch-ui-git-main-riccoxie.vercel.app
meilisearch-ui.riccox.com
meilisearch-ui.vercel.app
meilisearch-ui-riccoxie.vercel.app