Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
chore: adds use client directive atop custom react components (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodMFlesch authored May 15, 2023
1 parent 5941073 commit 537f417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collections/Forms/DynamicFieldSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import React, { useEffect, useState } from 'react'
import { Select, useForm } from 'payload/components/forms'
import { TextField } from 'payload/dist/fields/config/types'
Expand Down
2 changes: 2 additions & 0 deletions src/collections/Forms/DynamicPriceSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import React, { useEffect, useState } from 'react';
import { Text, useWatchForm } from 'payload/components/forms';
import { Props as TextFieldType } from 'payload/dist/admin/components/forms/field-types/Text/types';
Expand Down

0 comments on commit 537f417

Please sign in to comment.