Skip to content

Commit

Permalink
fix(richtext-slate): add use client to top of tsx files importing fro…
Browse files Browse the repository at this point in the history
…m payload core (#4312)
  • Loading branch information
JarrodMFlesch committed Nov 29, 2023
1 parent cd07873 commit d4f28b1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/richtext-slate/src/field/RichText.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { BaseEditor, BaseOperation } from 'slate'
import type { HistoryEditor } from 'slate-history'
import type { ReactEditor } from 'slate-react'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { SanitizedCollectionConfig } from 'payload/types'

import { useConfig } from 'payload/components/utilities'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { Fields } from 'payload/types'

import { useModal } from '@faceless-ui/modal'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { Fields } from 'payload/types'
import type { HTMLAttributes } from 'react'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { Drawer } from 'payload/components/elements'
import { Form, FormSubmit, RenderFields } from 'payload/components/forms'
import { fieldTypes } from 'payload/components/forms'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { RelationshipComponent } from 'payload/components/fields/Relationship'
import { SelectComponent } from 'payload/components/fields/Select'
import { useFormFields } from 'payload/components/forms'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { useListDrawer } from 'payload/components/elements'
import React, { Fragment, useCallback, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { HTMLAttributes } from 'react'

import { Button } from 'payload/components'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { useListDrawer } from 'payload/components/elements'
import React, { Fragment, useCallback } from 'react'
import { useTranslation } from 'react-i18next'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { SanitizedCollectionConfig } from 'payload/types'

import { useModal } from '@faceless-ui/modal'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import type { SanitizedCollectionConfig } from 'payload/types'
import type { HTMLAttributes } from 'react'

Expand Down

0 comments on commit d4f28b1

Please sign in to comment.