chore: remove some default exports
This commit is contained in:
@@ -18,7 +18,7 @@ import { v4 as uuidv4 } from 'uuid'
|
|||||||
const path = 'apiKey'
|
const path = 'apiKey'
|
||||||
const baseClass = 'api-key'
|
const baseClass = 'api-key'
|
||||||
|
|
||||||
const APIKey: React.FC<{ readOnly?: boolean }> = ({ readOnly }) => {
|
export const APIKey: React.FC<{ readOnly?: boolean }> = ({ readOnly }) => {
|
||||||
const [initialAPIKey, setInitialAPIKey] = useState(null)
|
const [initialAPIKey, setInitialAPIKey] = useState(null)
|
||||||
const [highlightedField, setHighlightedField] = useState(false)
|
const [highlightedField, setHighlightedField] = useState(false)
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
@@ -107,5 +107,3 @@ const APIKey: React.FC<{ readOnly?: boolean }> = ({ readOnly }) => {
|
|||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default APIKey
|
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ import { toast } from 'react-toastify'
|
|||||||
|
|
||||||
import type { Props } from './types.js'
|
import type { Props } from './types.js'
|
||||||
|
|
||||||
import APIKey from './APIKey.js'
|
import { APIKey } from './APIKey.js'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
|
||||||
const baseClass = 'auth-fields'
|
const baseClass = 'auth-fields'
|
||||||
|
|
||||||
const Auth: React.FC<Props> = (props) => {
|
export const Auth: React.FC<Props> = (props) => {
|
||||||
const {
|
const {
|
||||||
className,
|
className,
|
||||||
collectionSlug,
|
collectionSlug,
|
||||||
@@ -45,7 +45,7 @@ const Auth: React.FC<Props> = (props) => {
|
|||||||
} = useConfig()
|
} = useConfig()
|
||||||
|
|
||||||
const handleChangePassword = useCallback(
|
const handleChangePassword = useCallback(
|
||||||
async (state: boolean) => {
|
(state: boolean) => {
|
||||||
if (!state) {
|
if (!state) {
|
||||||
dispatchFields({ type: 'REMOVE', path: 'password' })
|
dispatchFields({ type: 'REMOVE', path: 'password' })
|
||||||
dispatchFields({ type: 'REMOVE', path: 'confirm-password' })
|
dispatchFields({ type: 'REMOVE', path: 'confirm-password' })
|
||||||
@@ -163,5 +163,3 @@ const Auth: React.FC<Props> = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Auth
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import React, { Fragment, useCallback } from 'react'
|
|||||||
|
|
||||||
import { LeaveWithoutSaving } from '../../../elements/LeaveWithoutSaving/index.js'
|
import { LeaveWithoutSaving } from '../../../elements/LeaveWithoutSaving/index.js'
|
||||||
// import { getTranslation } from '@payloadcms/translations'
|
// import { getTranslation } from '@payloadcms/translations'
|
||||||
import Auth from './Auth/index.js'
|
import { Auth } from './Auth/index.js'
|
||||||
import { SetDocumentTitle } from './SetDocumentTitle/index.js'
|
import { SetDocumentTitle } from './SetDocumentTitle/index.js'
|
||||||
import { SetStepNav } from './SetStepNav/index.js'
|
import { SetStepNav } from './SetStepNav/index.js'
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
|||||||
Reference in New Issue
Block a user