-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update colors of all existing components
- Loading branch information
1 parent
e915b4b
commit 75f8844
Showing
4 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
'use client'; | ||
|
||
import { Button, Icon } from '@/components/ui'; | ||
import { Icon } from '@/components/ui'; | ||
|
||
import React from 'react'; | ||
|
||
export const MobileHeader = () => { | ||
return ( | ||
<header className="bg-popover sticky top-0 z-40 w-full"> | ||
<div className="flex h-16 items-center justify-between px-5"> | ||
<Button variant="ghost" size="icon" onClick={() => {}} className="hover:bg-popover"> | ||
<Icon iconName="arrowLeft" color="popover-foreground" /> | ||
<header className="bg-white sticky top-0 z-40 w-full"> | ||
<div className="flex h-12 items-center justify-between"> | ||
<Button> | ||
<Icon iconName="arrowLeft" color="gray-dark" /> | ||
</Button> | ||
<Button variant="ghost" size="icon" onClick={() => {}} className="hover:bg-popover"> | ||
<Icon iconName="menuCircle" color="popover-foreground" /> | ||
<Button> | ||
<Icon iconName="menuCircle" color="gray-dark" /> | ||
</Button> | ||
</div> | ||
</header> | ||
); | ||
}; | ||
|
||
interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: React.ReactNode; | ||
} | ||
|
||
const Button: React.FC<IButtonProps> = ({ children, ...props }) => { | ||
return ( | ||
<button className="h-full aspect-square flex items-center justify-center" {...props}> | ||
{children} | ||
</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