feat(blog): port from CRA to vite + react

This commit is contained in:
Kim, Jimin 2023-07-07 19:18:32 +09:00
parent 8243d38270
commit e48b65b14c
109 changed files with 1493 additions and 10360 deletions

View file

@ -1,21 +1,11 @@
import { type FC } from "react"
import styled from "styled-components"
import buttonStyle from "../../styles/button"
const Button = styled.button`
${buttonStyle}
/* center div */
margin: 0 auto;
`
interface Props {
action(): void
}
const ShowMoreButton: FC<Props> = (props) => {
return <Button onClick={props.action}>Show more posts</Button>
export default function ShowMoreButton({ action }: Props) {
return (
<button className="button" onClick={action}>
Show more posts
</button>
)
}
export default ShowMoreButton