fix: Updated Button states for pages and minor UI fix (#6812)

## Description

#6811 

- Deleted button lacked `accent danger` on options menu
- Customize fields `onhover` lacked width to cover entire div tag
- Deactivate button lacked variant

## After

<img width="305" alt="Screenshot 2024-08-31 at 1 43 29 AM"
src="https://github.com/user-attachments/assets/82852227-e7d2-4327-a8cc-8f9f0e84f488">

<img width="229" alt="Screenshot 2024-08-31 at 1 09 31 AM"
src="https://github.com/user-attachments/assets/4783dd5a-a8ab-41b5-83d5-95425b6bebc4">
<img width="163" alt="Screenshot 2024-08-31 at 1 07 49 AM"
src="https://github.com/user-attachments/assets/33ec9928-6463-4797-bfc4-b40a927ec8ec">

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Harshit Singh
2024-08-31 18:29:11 +05:30
committed by GitHub
parent ea7b9e90c9
commit d9650fd5cf
7 changed files with 14 additions and 5 deletions

View File

@ -166,6 +166,7 @@ export const RecordIndexOptionsDropdownContent = ({
closeDropdown();
}}
LeftIcon={IconTrash}
accent="danger"
text={`Deleted ${objectNamePlural}`}
/>
</DropdownMenuItemsContainer>

View File

@ -59,6 +59,7 @@ export const RecordTableHeaderPlusButtonContent = () => {
)}
<DropdownMenuItemsContainer>
<UndecoratedLink
fullWidth
to={`/settings/objects/${getObjectSlug(objectMetadataItem)}`}
onClick={() => {
setNavigationMemorizedUrl(location.pathname + location.search);