-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1412 from bancorprotocol/issue-#1186
Fix inconsistent back button styling
- Loading branch information
Showing
6 changed files
with
63 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ReactComponent as IconChevronLeft } from 'assets/icons/chevron-left.svg'; | ||
import { cn } from 'utils/helpers'; | ||
import { ButtonHTMLProps } from './button'; | ||
|
||
export const backStyle = | ||
'bg-background-900 hover:bg-background-800 grid size-40 place-items-center rounded-full p-12'; | ||
export const BackIcon = () => <IconChevronLeft className="size-16" />; | ||
|
||
export const BackButton = ({ className, ...props }: ButtonHTMLProps) => { | ||
return ( | ||
<button type="button" className={cn(backStyle, className)} {...props}> | ||
<BackIcon /> | ||
</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