diff --git a/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeLists/EditCodeList/EditCodeList.tsx b/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeLists/EditCodeList/EditCodeList.tsx index 9d379fc4604..717810e93c9 100644 --- a/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeLists/EditCodeList/EditCodeList.tsx +++ b/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeLists/EditCodeList/EditCodeList.tsx @@ -3,7 +3,7 @@ import { StudioCodeListEditor, StudioToggleableTextfield } from '@studio/compone import React from 'react'; import { useTranslation } from 'react-i18next'; import type { CodeListWithMetadata } from '../../CodeListPage'; -import { useOptionListEditorTexts } from '../../hooks/useCodeListEditorTexts'; +import { useCodeListEditorTexts } from '../../hooks/useCodeListEditorTexts'; import { KeyVerticalIcon } from '@studio/icons'; import { updateCodeListWithMetadata } from '../CodeLists'; import { ArrayUtils, FileNameUtils } from '@studio/pure-functions'; @@ -24,7 +24,7 @@ export function EditCodeList({ codeListNames, }: EditCodeListProps): React.ReactElement { const { t } = useTranslation(); - const editorTexts: CodeListEditorTexts = useOptionListEditorTexts(); + const editorTexts: CodeListEditorTexts = useCodeListEditorTexts(); const getInvalidInputFileNameErrorMessage = useInputCodeListNameErrorMessage(); const handleUpdateCodeListId = (newCodeListId: string) => { diff --git a/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx b/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx index eaf36826cd8..dea72692c94 100644 --- a/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx +++ b/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListsActionsBar/CreateNewCodeListModal/CreateNewCodeListModal.tsx @@ -7,7 +7,7 @@ import { } from '@studio/components'; import type { CodeList, CodeListEditorTexts } from '@studio/components'; import { useTranslation } from 'react-i18next'; -import { useOptionListEditorTexts } from '../../hooks/useCodeListEditorTexts'; +import { useCodeListEditorTexts } from '../../hooks/useCodeListEditorTexts'; import { CheckmarkIcon } from '@studio/icons'; import classes from './CreateNewCodeListModal.module.css'; import type { CodeListWithMetadata } from '../../CodeListPage'; @@ -68,7 +68,7 @@ function CreateNewCodeList({ onCloseModal, }: CreateNewCodeListProps) { const { t } = useTranslation(); - const editorTexts: CodeListEditorTexts = useOptionListEditorTexts(); + const editorTexts: CodeListEditorTexts = useCodeListEditorTexts(); const getInvalidInputFileNameErrorMessage = useInputCodeListNameErrorMessage(); const [isCodeListValid, setIsCodeListValid] = useState(true); const [codeListTitleError, setCodeListTitleError] = useState(''); diff --git a/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/hooks/useCodeListEditorTexts.ts b/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/hooks/useCodeListEditorTexts.ts index c56f5f583aa..c1c64d2fd1e 100644 --- a/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/hooks/useCodeListEditorTexts.ts +++ b/frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/hooks/useCodeListEditorTexts.ts @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import type { CodeListEditorTexts } from '@studio/components'; -export const useOptionListEditorTexts = (): CodeListEditorTexts => { +export const useCodeListEditorTexts = (): CodeListEditorTexts => { const { t } = useTranslation(); return {