mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Force help boxes to only render client side
This commit is contained in:
parent
afaf6f2945
commit
e63626be72
1 changed files with 7 additions and 2 deletions
|
|
@ -1,11 +1,10 @@
|
|||
'use client'
|
||||
|
||||
import { HStack, SpanBox, VStack } from './LayoutPrimitives'
|
||||
import { theme } from '../tokens/stitches.config'
|
||||
import { Button } from './Button'
|
||||
import { CloseIcon } from './icons/CloseIcon'
|
||||
import { HelpfulOwlImage } from './images/HelpfulOwlImage'
|
||||
import { ArrowSquareOut } from 'phosphor-react'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
type FeatureHelpBoxProps = {
|
||||
helpTitle: string
|
||||
|
|
@ -21,6 +20,12 @@ type FeatureHelpBoxProps = {
|
|||
}
|
||||
|
||||
export const FeatureHelpBox = (props: FeatureHelpBoxProps) => {
|
||||
const [display, setDisplay] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
setDisplay(true)
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<HStack
|
||||
css={{
|
||||
|
|
|
|||
Loading…
Reference in a new issue