-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 Add Wallet modal open button component
- Loading branch information
1 parent
34605ab
commit 39cf93f
Showing
1 changed file
with
24 additions
and
0 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,24 @@ | ||
import styled from "@emotion/styled"; | ||
import React, { FC } from "react"; | ||
|
||
interface ModalButtonType { | ||
title: string; | ||
margin: string; | ||
} | ||
|
||
const ModalOpenButton: FC<ModalButtonType> = ({ title, margin }) => ( | ||
<Container margin={margin}>{title}</Container> | ||
); | ||
|
||
export default ModalOpenButton; | ||
|
||
const Container = styled.button<{ margin: string }>` | ||
border: 1px solid #fff; | ||
border-radius: 4px; | ||
outline: none; | ||
background-color: ${({ theme }) => theme.colors.primary.default}; | ||
color: ${({ theme }) => theme.colors.grayscale.scale10}; | ||
font: ${({ theme }) => theme.fonts.description1}; | ||
padding: 4px 8px; | ||
margin: ${({ margin }) => margin}; | ||
`; |