diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-09 16:58:23 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-10 16:21:15 +0100 |
| commit | fca6e17c10a9a737c5fae7417eec89701446875a (patch) | |
| tree | 5f1be3651185c643ec87f71221f13a4d463f32d6 /src/pages/blog/index.tsx | |
| parent | d738152a59d2ef8f476b16789ba386dc57ff2211 (diff) | |
refactor(styles): use compose to declare grid layouts once
I'm using same grid layouts in multiple places. To avoid maintenance
issue, I think it is better to declare the grid once and to import its
declaration where it is needed. Thanks to CSS modules, I can use
compose to do that.
Diffstat (limited to 'src/pages/blog/index.tsx')
| -rw-r--r-- | src/pages/blog/index.tsx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx index 855e6ce..db4b7a8 100644 --- a/src/pages/blog/index.tsx +++ b/src/pages/blog/index.tsx @@ -51,16 +51,14 @@ const Blog: NextPageWithLayout<BlogPageProps> = ({ fallback }) => { </Head> <article className={styles.wrapper}> <PostHeader title={t`Blog`} /> - <div className={styles.body}> - <PostsList data={data} showYears={true} /> - {hasNextPage && ( - <Button - isDisabled={isLoadingMore} - clickHandler={() => setSize(size + 1)} - position="center" - >{t`Load more?`}</Button> - )} - </div> + <PostsList data={data} showYears={true} /> + {hasNextPage && ( + <Button + isDisabled={isLoadingMore} + clickHandler={() => setSize(size + 1)} + position="center" + >{t`Load more?`}</Button> + )} <aside className={styles.aside}> <ThematicsList /> <TopicsList /> |
