New page structure (#1377)
* - new page structure * - removed unecessary task changes * - handleClick -> onClick
This commit is contained in:
19
front/src/modules/ui/layout/components/PageAddButton.tsx
Normal file
19
front/src/modules/ui/layout/components/PageAddButton.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { IconButton } from '@/ui/button/components/IconButton';
|
||||
import { IconPlus } from '@/ui/icon';
|
||||
|
||||
type OwnProps = {
|
||||
onClick: () => void;
|
||||
};
|
||||
|
||||
export function PageAddButton({ onClick }: OwnProps) {
|
||||
return (
|
||||
<IconButton
|
||||
icon={<IconPlus size={16} />}
|
||||
size="medium"
|
||||
variant="secondary"
|
||||
data-testid="add-button"
|
||||
accent="default"
|
||||
onClick={onClick}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user