-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sidebar colors borders adjusted
- Loading branch information
1 parent
a4180e5
commit a76b723
Showing
16 changed files
with
197 additions
and
73 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
packages/apps/tools/src/components/Common/DrawerToolbar/DrawerIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { gridMiniMenuListButtonStyle } from '@/components/Common/Layout/partials/Sidebar/styles.css'; | ||
import { SystemIcon } from '@kadena/react-ui'; | ||
import Link from 'next/link'; | ||
import type { ButtonHTMLAttributes, FC } from 'react'; | ||
import React from 'react'; | ||
|
||
export interface IMenuButtonProps | ||
extends ButtonHTMLAttributes<HTMLButtonElement> { | ||
title?: string; | ||
href?: string; | ||
active?: boolean; | ||
icon: keyof typeof SystemIcon; | ||
rotateClass?: string; | ||
} | ||
|
||
export const DrawerIconButton: FC<IMenuButtonProps> = ({ | ||
active, | ||
title, | ||
href, | ||
icon, | ||
rotateClass, | ||
...rest | ||
}) => { | ||
const Icon = SystemIcon[icon]; | ||
|
||
const button = ( | ||
<> | ||
<button | ||
className={gridMiniMenuListButtonStyle} | ||
{...rest} | ||
aria-label={title} | ||
> | ||
<Icon size={'sm'} /> | ||
</button> | ||
</> | ||
); | ||
|
||
if (href) return <Link href={href}>{button}</Link>; | ||
return button; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
packages/apps/tools/src/components/Common/Layout/partials/Sidebar/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import classNames from 'classnames'; | ||
import type { FC } from 'react'; | ||
import React from 'react'; | ||
import { Menu } from './Menu'; | ||
import { Toolbar } from './Toolbar'; | ||
import { sidebarClass } from './styles.css'; | ||
|
||
export const Sidebar: FC = () => { | ||
return ( | ||
<div className={classNames(sidebarClass)}> | ||
<> | ||
<Toolbar /> | ||
<Menu /> | ||
</div> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.