8928 refactor page header buttons (#8952)
Closes #8928 <img width="1296" alt="Capture d’écran 2024-12-09 à 10 26 37" src="https://github.com/user-attachments/assets/f33202b0-9c11-48da-8daa-e867d62a1803"> <img width="1296" alt="Capture d’écran 2024-12-09 à 10 26 54" src="https://github.com/user-attachments/assets/a94f89d4-ca12-403f-bfcb-12168a82f77c">
This commit is contained in:
@ -1,17 +1,18 @@
|
||||
import { IconButton, IconPlus } from 'twenty-ui';
|
||||
import { Button, IconPlus } from 'twenty-ui';
|
||||
|
||||
type PageAddButtonProps = {
|
||||
onClick: () => void;
|
||||
onClick?: () => void;
|
||||
};
|
||||
|
||||
export const PageAddButton = ({ onClick }: PageAddButtonProps) => (
|
||||
<IconButton
|
||||
<Button
|
||||
Icon={IconPlus}
|
||||
dataTestId="add-button"
|
||||
size="medium"
|
||||
size="small"
|
||||
variant="secondary"
|
||||
accent="default"
|
||||
title="New record"
|
||||
onClick={onClick}
|
||||
ariaLabel="Add"
|
||||
ariaLabel="New record"
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user