mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 02:43:33 +00:00
restructure files onto electron-vite boilerplate
This commit is contained in:
parent
91ce2cd8a1
commit
1cf587bc8f
457 changed files with 9927 additions and 11705 deletions
|
|
@ -1,11 +1,12 @@
|
|||
import { useCallback } from 'react';
|
||||
import { Group, Stack } from '@mantine/core';
|
||||
import { useLocalStorage } from '@mantine/hooks';
|
||||
import { useCallback } from 'react';
|
||||
import { RiExternalLinkLine } from 'react-icons/ri';
|
||||
import { Button, Dialog, Text } from './components';
|
||||
import packageJson from '../../package.json';
|
||||
|
||||
export const IsUpdatedDialog = () => {
|
||||
import packageJson from '../../package.json';
|
||||
import { Button, Dialog, Text } from './components';
|
||||
|
||||
export function IsUpdatedDialog() {
|
||||
const { version } = packageJson;
|
||||
|
||||
const [value, setValue] = useLocalStorage({ key: 'version' });
|
||||
|
|
@ -31,16 +32,16 @@ export const IsUpdatedDialog = () => {
|
|||
<Button
|
||||
component="a"
|
||||
href={`https://github.com/jeffvli/feishin/releases/tag/v${version}`}
|
||||
onClick={handleDismiss}
|
||||
rightIcon={<RiExternalLinkLine />}
|
||||
target="_blank"
|
||||
variant="filled"
|
||||
onClick={handleDismiss}
|
||||
>
|
||||
View release notes
|
||||
</Button>
|
||||
<Button
|
||||
variant="default"
|
||||
onClick={handleDismiss}
|
||||
variant="default"
|
||||
>
|
||||
Dismiss
|
||||
</Button>
|
||||
|
|
@ -48,4 +49,4 @@ export const IsUpdatedDialog = () => {
|
|||
</Stack>
|
||||
</Dialog>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue