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

View File

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

View File

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