refact(header): extract DiscordButton to its own component

This commit is contained in:
Jean-Philippe Sirois
2019-08-23 17:13:06 -04:00
parent 506f78735a
commit 816249f27a
4 changed files with 36 additions and 38 deletions
+6 -8
View File
@@ -1,13 +1,11 @@
import React from "react"
import React, { PropsWithChildren } from "react"
import * as SC from "./styles"
function DiscordButton({
lined = false,
children,
}: React.PropsWithChildren<{ lined: boolean }>) {
function DiscordButton({ children }: PropsWithChildren<{}>) {
return (
<button>
<div>{children}</div>
</button>
<SC.DiscordButtonWrapper>
<SC.StyledDiscordLogo /> {children}
</SC.DiscordButtonWrapper>
)
}