aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/code.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-8/+7
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-2/+2
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: add an aria label to code blocksArmand Philippot2022-06-071-0/+6
| | | | | Prism is adding a tabindex to code blocks, so I think an aria label can help screen reader users to identify the tabbed content.
* chore: complete Storybook storiesArmand Philippot2022-05-211-32/+4
|
* refactor: rewrite Prism hooks and providersArmand Philippot2022-05-191-17/+8
| | | | | It avoid some hydratation errors on project pages (not in article however) and the hooks are now reusable.
* chore: add a Code componentArmand Philippot2022-04-191-0/+101