feat(blog): port from CRA to vite + react
This commit is contained in:
parent
8243d38270
commit
e48b65b14c
109 changed files with 1493 additions and 10360 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue