Add under construction warning for the theme shop

This commit is contained in:
brecert 2021-09-06 06:24:01 -04:00
parent 414dcd51c0
commit 6d85c9b725
No known key found for this signature in database
GPG key ID: 1B2E56B9EC985B96

View file

@ -1,5 +1,6 @@
import { useEffect, useState } from "preact/hooks" import { useEffect, useState } from "preact/hooks"
import styled from "styled-components" import styled from "styled-components"
import Tip from "../../../components/ui/Tip"
import { Theme, generateVariables } from '../../../context/Theme' import { Theme, generateVariables } from '../../../context/Theme'
import { dispatch } from "../../../redux" import { dispatch } from "../../../redux"
@ -132,7 +133,8 @@ export function ThemeShop() {
}) })
}, [themeList]) }, [themeList])
return ( return (<div>
<Tip warning>This section is under construction.</Tip>
<ThemeList> <ThemeList>
{themeList?.map(([slug, theme]) => { {themeList?.map(([slug, theme]) => {
return <ThemeInfo key={slug} data-loaded={Reflect.has(themeData, slug)}> return <ThemeInfo key={slug} data-loaded={Reflect.has(themeData, slug)}>
@ -156,5 +158,5 @@ export function ThemeShop() {
</ThemeInfo> </ThemeInfo>
})} })}
</ThemeList> </ThemeList>
) </div>)
} }