Skip to content

Commit

Permalink
chore: improve the softdelete style (#6846)
Browse files Browse the repository at this point in the history
## 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">
  • Loading branch information
pacyL2K19 authored Sep 2, 2024
1 parent 329e736 commit 464fd5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
IconEyeOff,
IconFileExport,
IconFileImport,
IconRotate2,
IconSettings,
IconTag,
IconTrash,
} from 'twenty-ui';

import { useObjectNamePluralFromSingular } from '@/object-metadata/hooks/useObjectNamePluralFromSingular';
Expand Down Expand Up @@ -165,8 +165,7 @@ export const RecordIndexOptionsDropdownContent = ({
handleToggleTrashColumnFilter();
closeDropdown();
}}
LeftIcon={IconTrash}
accent="danger"
LeftIcon={IconRotate2}
text={`Deleted ${objectNamePlural}`}
/>
</DropdownMenuItemsContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export {
IconRestore,
IconRocket,
IconRotate,
IconRotate2,
IconSearch,
IconSend,
IconSettings,
Expand Down

0 comments on commit 464fd5c

Please sign in to comment.