1
0
Fork 0

feat(shared): Updated design picker

This commit is contained in:
joostdecock 2023-11-01 13:42:03 +01:00
parent e65f2ca701
commit 9a9f29d2eb
7 changed files with 242 additions and 91 deletions

View file

@ -25,6 +25,7 @@ export const DynamicMdx = ({ site = 'org', slug, language, title = 1 }) => {
const [frontmatter, setFrontmatter] = useState(false)
useEffect(() => {
console.log('in effect')
const loadMdx = async () => {
const response = await fetch(`${ghPrefix}/${site}/${slug}/${language}.md`)
const md = await response.text()