mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-05 12:43:27 +00:00
parent
4cff4763ed
commit
c54a0b3805
|
@ -10,7 +10,7 @@ import {
|
|||
} from '@sd/client';
|
||||
import { Button, Card, Input, Select, SelectOption, Slider, Switch, tw, z } from '@sd/ui';
|
||||
import { Icon } from '~/components';
|
||||
import { useDebouncedFormWatch, useOperatingSystem } from '~/hooks';
|
||||
import { useDebouncedFormWatch } from '~/hooks';
|
||||
import { usePlatform } from '~/util/Platform';
|
||||
|
||||
import { Heading } from '../Layout';
|
||||
|
@ -28,8 +28,6 @@ export const Component = () => {
|
|||
const debugState = useDebugState();
|
||||
const editNode = useBridgeMutation('nodes.edit');
|
||||
const connectedPeers = useConnectedPeers();
|
||||
const os = useOperatingSystem();
|
||||
const { requestFdaMacos } = usePlatform();
|
||||
const updateThumbnailerPreferences = useBridgeMutation('nodes.updateThumbnailerPreferences');
|
||||
|
||||
const form = useZodForm({
|
||||
|
@ -177,19 +175,6 @@ export const Component = () => {
|
|||
</div>
|
||||
</Card>
|
||||
|
||||
{os === 'macOS' && (
|
||||
<Setting
|
||||
mini
|
||||
title="Full disk access"
|
||||
containerClassName="items-start"
|
||||
description="Enable full disk access to allow Spacedrive to index additional files."
|
||||
>
|
||||
<Button onClick={requestFdaMacos} variant="gray" size="sm">
|
||||
Enable
|
||||
</Button>
|
||||
</Setting>
|
||||
)}
|
||||
|
||||
<Setting
|
||||
mini
|
||||
title="Debug mode"
|
||||
|
|
Loading…
Reference in a new issue