Refactor buttons (#1257)
* Refactor buttons * Complete components creation * Complete refactoring * fix lint * Complete button work
This commit is contained in:
@@ -4,7 +4,8 @@ import {
|
||||
} from '@tabler/icons-react';
|
||||
import { useRecoilState } from 'recoil';
|
||||
|
||||
import { IconButton } from '../../button/components/IconButton';
|
||||
import { LightIconButton } from '@/ui/button/components/LightIconButton';
|
||||
|
||||
import { isRightDrawerExpandedState } from '../states/isRightDrawerExpandedState';
|
||||
|
||||
export function RightDrawerTopBarExpandButton() {
|
||||
@@ -17,12 +18,14 @@ export function RightDrawerTopBarExpandButton() {
|
||||
}
|
||||
|
||||
return (
|
||||
<IconButton
|
||||
<LightIconButton
|
||||
size="medium"
|
||||
accent="tertiary"
|
||||
icon={
|
||||
isRightDrawerExpanded ? (
|
||||
<IconLayoutSidebarRightCollapse size={16} />
|
||||
<IconLayoutSidebarRightCollapse />
|
||||
) : (
|
||||
<IconLayoutSidebarRightExpand size={16} />
|
||||
<IconLayoutSidebarRightExpand />
|
||||
)
|
||||
}
|
||||
onClick={handleButtonClick}
|
||||
|
||||
Reference in New Issue
Block a user