use styled-jsx in button
This commit is contained in:
parent
3651936497
commit
40b37accbb
@ -20,12 +20,16 @@ const Button: FunctionComponent<{
|
||||
style={{
|
||||
background: color,
|
||||
color: textColor,
|
||||
margin: "5px",
|
||||
padding: "10px",
|
||||
border: "none",
|
||||
borderRadius: "4vw",
|
||||
}}
|
||||
>
|
||||
<style jsx>{`
|
||||
button {
|
||||
margin: 5px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
border-radius: 4vw;
|
||||
}
|
||||
`}</style>
|
||||
{text}
|
||||
</button>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user