|
@@ -4,7 +4,6 @@ import React, { useCallback, useState } from 'react'
|
|
|
import { useBoolean } from 'ahooks'
|
|
|
import {
|
|
|
RiDeleteBinLine,
|
|
|
- RiEditLine,
|
|
|
} from '@remixicon/react'
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
import type { DataSet } from '@/models/datasets'
|
|
@@ -77,16 +76,16 @@ const DatasetItem: FC<Props> = ({
|
|
|
</div>
|
|
|
{!readonly && (
|
|
|
<div className='ml-2 hidden shrink-0 items-center space-x-1 group-hover/dataset-item:flex'>
|
|
|
- {
|
|
|
- editable && <ActionButton
|
|
|
- onClick={(e) => {
|
|
|
- e.stopPropagation()
|
|
|
- showSettingsModal()
|
|
|
- }}
|
|
|
- >
|
|
|
- <RiEditLine className='h-4 w-4 shrink-0 text-text-tertiary' />
|
|
|
- </ActionButton>
|
|
|
- }
|
|
|
+ {/* { */}
|
|
|
+ {/* editable && <ActionButton */}
|
|
|
+ {/* onClick={(e) => { */}
|
|
|
+ {/* e.stopPropagation() */}
|
|
|
+ {/* showSettingsModal() */}
|
|
|
+ {/* }} */}
|
|
|
+ {/* > */}
|
|
|
+ {/* <RiEditLine className='h-4 w-4 shrink-0 text-text-tertiary' /> */}
|
|
|
+ {/* </ActionButton> */}
|
|
|
+ {/* } */}
|
|
|
<ActionButton
|
|
|
onClick={handleRemove}
|
|
|
state={ActionButtonState.Destructive}
|