Skip to content

Commit

Permalink
chore: adds use client directive (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsfletch authored Feb 29, 2024
1 parent fcfd2da commit 64d66fb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Modal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import * as focusTrap from 'focus-trap';
import React, { Fragment, ElementType, HTMLProps } from 'react';
import asModal from '../asModal';
Expand Down
1 change: 1 addition & 0 deletions src/ModalContainer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import React, { MouseEvent, ElementType, HTMLProps } from 'react';
import { CSSTransition } from 'react-transition-group';
import useModal from '../useModal';
Expand Down
1 change: 1 addition & 0 deletions src/ModalProvider/context.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { createContext } from 'react';
import { ModalProviderProps } from '../ModalProvider';

Expand Down
1 change: 1 addition & 0 deletions src/ModalProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import React, {
Fragment,
useState,
Expand Down
1 change: 1 addition & 0 deletions src/ModalToggler/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import React, { ElementType, HTMLProps, MouseEvent } from 'react';
import { IModalContext } from '../ModalProvider/context';
import useModal from '../useModal';
Expand Down
1 change: 1 addition & 0 deletions src/asModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import React, {
useRef,
useEffect,
Expand Down
1 change: 1 addition & 0 deletions src/useModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { useContext } from 'react';
import ModalContext, { IModalContext } from '../ModalProvider/context';

Expand Down

0 comments on commit 64d66fb

Please sign in to comment.