mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-21 15:07:54 -04:00
* you know, you could just work on first try * fix extension * configure plugin and fix few translation issues * more * more keys * and more * more keys and sort * commit msg * we like keys here * end my suffering * jk i just love keys * key fix * add turkish * add german * Entendido * Demnächst * Mettre une étoile sur GitHub * 成功 * pnpm-lock * vite plugin * remove i18next backends --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { fda } from '@sd/assets/videos';
|
|
import { useNavigate } from 'react-router';
|
|
import { Button } from '@sd/ui';
|
|
import { Icon } from '~/components';
|
|
import { useLocale } from '~/hooks';
|
|
import { usePlatform } from '~/util/Platform';
|
|
|
|
import { OnboardingContainer, OnboardingDescription, OnboardingTitle } from './components';
|
|
|
|
export const FullDisk = () => {
|
|
const { requestFdaMacos } = usePlatform();
|
|
const navigate = useNavigate();
|
|
|
|
const { t } = useLocale();
|
|
|
|
return (
|
|
<OnboardingContainer>
|
|
<Icon name="HDD" size={80} />
|
|
<OnboardingTitle>{t('full_disk_access')}</OnboardingTitle>
|
|
<OnboardingDescription>{t('full_disk_access_description')}</OnboardingDescription>
|
|
<div className="mt-5 w-full max-w-[450px]">
|
|
<video className="rounded-md" autoPlay loop muted controls={false} src={fda} />
|
|
</div>
|
|
<div className="flex items-center gap-3">
|
|
<Button onClick={requestFdaMacos} variant="gray" size="sm" className="my-5">
|
|
{t('open_settings')}
|
|
</Button>
|
|
</div>
|
|
<div className="flex gap-3">
|
|
<Button
|
|
onClick={() => {
|
|
navigate('../locations', { replace: true });
|
|
}}
|
|
variant="accent"
|
|
size="sm"
|
|
className="mt-8"
|
|
>
|
|
{t('continue')}
|
|
</Button>
|
|
</div>
|
|
</OnboardingContainer>
|
|
);
|
|
};
|