fix: add stylings for list

This commit is contained in:
Christel Westerberg
2024-07-05 10:32:08 +02:00
parent 6184662caa
commit 17bc18ce2b
12 changed files with 167 additions and 43 deletions

View File

@@ -3,10 +3,10 @@ import { useRouter } from "next/navigation"
import { Button } from "@scandic-hotels/design-system/current"
import { renderOptions as currentRenderOptions } from "@/components/Current/currentRenderOptions"
import Image from "@/components/Image"
import JsonToHtml from "@/components/JsonToHtml"
import { renderOptions as currentRenderOption } from "./../../currentRenderOptions"
import { renderOptions } from "./renderOptions"
import styles from "./puff.module.css"
@@ -45,7 +45,7 @@ export default function Puff({
<JsonToHtml
embeds={[]}
nodes={text.json.children}
renderOptions={{ ...currentRenderOption, ...renderOptions }}
renderOptions={{ ...currentRenderOptions, ...renderOptions }}
/>
<div>
<Button onPress={onClick}>{link.title || title}</Button>
@@ -74,7 +74,7 @@ export default function Puff({
<JsonToHtml
embeds={[]}
nodes={text.json.children}
renderOptions={renderOptions}
renderOptions={{ ...currentRenderOptions, ...renderOptions }}
/>
</section>
</article>