chore: improve the softdelete style (#6846)

## This PR

- Fix #6836 

<img width="1296" alt="Screenshot 2024-09-02 at 17 54 31"
src="https://github.com/user-attachments/assets/cc1411b6-87f3-425f-b7e7-a1ba20c2993a">
This commit is contained in:
Pacifique LINJANJA
2024-09-02 19:24:30 +04:00
committed by GitHub
parent 329e7364a4
commit 464fd5c485
3 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ export const useHandleToggleTrashColumnFilter = ({
const handleToggleTrashColumnFilter = useCallback(() => { const handleToggleTrashColumnFilter = useCallback(() => {
const trashFieldMetadata = objectMetadataItem.fields.find( const trashFieldMetadata = objectMetadataItem.fields.find(
(field) => field.name === 'deletedAt', (field: { name: string }) => field.name === 'deletedAt',
); );
if (!isDefined(trashFieldMetadata)) return; if (!isDefined(trashFieldMetadata)) return;
@ -52,7 +52,7 @@ export const useHandleToggleTrashColumnFilter = ({
operand: ViewFilterOperand.IsNotEmpty, operand: ViewFilterOperand.IsNotEmpty,
displayValue: '', displayValue: '',
definition: { definition: {
label: `Deleted ${objectMetadataItem.namePlural}`, label: `Deleted`,
iconName: 'IconTrash', iconName: 'IconTrash',
fieldMetadataId: trashFieldMetadata.id, fieldMetadataId: trashFieldMetadata.id,
type: filterType, type: filterType,

View File

@ -6,9 +6,9 @@ import {
IconEyeOff, IconEyeOff,
IconFileExport, IconFileExport,
IconFileImport, IconFileImport,
IconRotate2,
IconSettings, IconSettings,
IconTag, IconTag,
IconTrash,
} from 'twenty-ui'; } from 'twenty-ui';
import { useObjectNamePluralFromSingular } from '@/object-metadata/hooks/useObjectNamePluralFromSingular'; import { useObjectNamePluralFromSingular } from '@/object-metadata/hooks/useObjectNamePluralFromSingular';
@ -165,8 +165,7 @@ export const RecordIndexOptionsDropdownContent = ({
handleToggleTrashColumnFilter(); handleToggleTrashColumnFilter();
closeDropdown(); closeDropdown();
}} }}
LeftIcon={IconTrash} LeftIcon={IconRotate2}
accent="danger"
text={`Deleted ${objectNamePlural}`} text={`Deleted ${objectNamePlural}`}
/> />
</DropdownMenuItemsContainer> </DropdownMenuItemsContainer>

View File

@ -151,6 +151,7 @@ export {
IconRestore, IconRestore,
IconRocket, IconRocket,
IconRotate, IconRotate,
IconRotate2,
IconSearch, IconSearch,
IconSend, IconSend,
IconSettings, IconSettings,