Skip to content

Commit

Permalink
Adding use client to ThemeProvider and framer-motion components
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Apr 18, 2024
1 parent ffc5df3 commit fcd669e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Collapsible/Collapsible.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'
import { clsx } from 'clsx'
import { AnimatePresence, motion } from 'framer-motion'
Expand Down
2 changes: 2 additions & 0 deletions src/components/Image/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { motion } from 'framer-motion'
import { SyntheticEvent, useState } from 'react'

Expand Down
2 changes: 2 additions & 0 deletions src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import * as ModalPrimitive from '@radix-ui/react-dialog'
import { motion, MotionProps } from 'framer-motion'
import { PropsWithChildren } from 'react'
Expand Down
2 changes: 2 additions & 0 deletions src/components/Placeholder/Placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { motion } from 'framer-motion'

import { Box, BoxProps } from '../Box'
Expand Down
2 changes: 2 additions & 0 deletions src/components/ThemeProvider/ThemeProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { setElementVars } from '@vanilla-extract/dynamic'
import {
createContext,
Expand Down
2 changes: 2 additions & 0 deletions src/components/Toast/Toast.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import * as ToastPrimitive from '@radix-ui/react-toast'
import { AnimatePresence, motion } from 'framer-motion'
import {
Expand Down

0 comments on commit fcd669e

Please sign in to comment.