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