Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Add RemoteDataset option #384

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions client/components/Application/Buttons/Add.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react'
import Button from '@mui/material/Button'
import AddBoxIcon from '@mui/icons-material/AddBox'
import DatasetLinkedIcon from '@mui/icons-material/DatasetLinked'
import AddLinkIcon from '@mui/icons-material/AddLink'
import DropdownButton from '../../Parts/Buttons/Dropdown'
import IconButton from '../../Parts/Buttons/Icon'
Expand All @@ -21,7 +20,6 @@ export default function AddButton() {
<AddRemoteFileButton />
<AddLocalFolderButton />
<AddEmptyFolderButton />
<AddRemoteDatasetButton />
</DropdownButton>
)
}
Expand Down Expand Up @@ -101,15 +99,3 @@ function AddEmptyFolderButton() {
/>
)
}

function AddRemoteDatasetButton() {
const updateState = useStore((state) => state.updateState)
return (
<IconButton
variant="text"
label="Remote Dataset"
Icon={DatasetLinkedIcon}
onClick={() => updateState({ dialog: 'addRemoteDataset' })}
/>
)
}
2 changes: 0 additions & 2 deletions client/components/Application/Dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import AddRemoteFileDialog from './Dialogs/AddRemoteFile'
import AddEmptyFolderDialog from './Dialogs/AddEmptyFolder'
import AddRemoteDatasetDialog from './Dialogs/AddRemoteDataset'
import AdjustFileDialog from './Dialogs/AdjustFile'
import ConfigDialog from './Dialogs/Config'
import CopyFileDialog from './Dialogs/CopyFile'
Expand All @@ -24,7 +23,6 @@ export default function Dialog() {
const DIALOGS = {
addEmptyFolder: AddEmptyFolderDialog,
addRemoteFile: AddRemoteFileDialog,
addRemoteDataset: AddRemoteDatasetDialog,
adjustFile: AdjustFileDialog,
config: ConfigDialog,
configProject: ConfigDialog,
Expand Down
38 changes: 0 additions & 38 deletions client/components/Application/Dialogs/AddRemoteDataset.tsx

This file was deleted.

1 change: 0 additions & 1 deletion client/components/Application/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export type IDialog =
| 'addEmptyFolder'
| 'addRemoteDataset'
| 'addRemoteFile'
| 'adjustFile'
| 'config'
Expand Down
Loading