Skip to content

Commit

Permalink
storyblokEditable
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Mar 19, 2024
1 parent 364ac36 commit cea77fb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/(pages)/storyblok/(component)/tutorial/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use client'

import { storyblokEditable } from '@storyblok/react'
import { useStoryblokContext } from 'libs/storyblok/context'
import s from './tutorial.module.scss'

export function Tutorial() {
const { story } = useStoryblokContext()

return (
<div className={s.tutorial}>
<div className={s.tutorial} {...storyblokEditable(story.content)}>
<h2 className={s.title}>{story.content?.title}</h2>

<div className={s.codes}>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@radix-ui/react-select": "^2.0.0",
"@react-three/drei": "^9.97.6",
"@react-three/fiber": "^8.15.19",
"@storyblok/react": "^3.0.9",
"@studio-freight/hamo": "0.6.28",
"@studio-freight/react-lenis": "0.0.45",
"@studio-freight/tempus": "^0.0.44",
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cea77fb

Please sign in to comment.