Skip to content

Commit

Permalink
Add emotion css
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik van Velzen authored and Erikvv committed Jun 27, 2024
1 parent 618034e commit 50f916e
Show file tree
Hide file tree
Showing 5 changed files with 337 additions and 98 deletions.
14 changes: 14 additions & 0 deletions frontend/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
[
"next/babel",
{
"preset-react": {
"runtime": "automatic",
"importSource": "@emotion/react"
}
}
]
],
"plugins": ["@emotion/babel-plugin"]
}
2 changes: 1 addition & 1 deletion frontend/components/RawHtml/RawHtml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function RawHtml({ html }: { html: string }) {

return (
<Fragment>
<div ref={RawHtmlItem} className={s.Container} dangerouslySetInnerHTML={{ __html: html }} />
<div ref={RawHtmlItem} className={s.Container} dangerouslySetInnerHTML={{ __html: html }}/>
{modal.modalText && (
<Transition appear show={modal.isOpen} as={Fragment}>
<Dialog as="div" className="relative z-50" onClose={closeModal}>
Expand Down
Loading

0 comments on commit 50f916e

Please sign in to comment.