From 520cdd65b84ce1ada440857ede418c6c731bc04c Mon Sep 17 00:00:00 2001 From: Alim TUNC Date: Mon, 28 Aug 2023 16:27:50 +0200 Subject: [PATCH] refactor: Rename wrapper to EditorWrapper --- .../playground/editor/{wrapper.tsx => EditorWrapper.tsx} | 0 .../src/components/organisms/playground/editor/completion.tsx | 2 +- .../src/components/organisms/playground/editor/formatted.tsx | 2 +- .../components/organisms/playground/editor/template/index.tsx | 2 +- .../components/organisms/playground/editor/variableModal.tsx | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/chainlit/frontend/src/components/organisms/playground/editor/{wrapper.tsx => EditorWrapper.tsx} (100%) diff --git a/src/chainlit/frontend/src/components/organisms/playground/editor/wrapper.tsx b/src/chainlit/frontend/src/components/organisms/playground/editor/EditorWrapper.tsx similarity index 100% rename from src/chainlit/frontend/src/components/organisms/playground/editor/wrapper.tsx rename to src/chainlit/frontend/src/components/organisms/playground/editor/EditorWrapper.tsx diff --git a/src/chainlit/frontend/src/components/organisms/playground/editor/completion.tsx b/src/chainlit/frontend/src/components/organisms/playground/editor/completion.tsx index 2e32225bc0..e83aec1e41 100644 --- a/src/chainlit/frontend/src/components/organisms/playground/editor/completion.tsx +++ b/src/chainlit/frontend/src/components/organisms/playground/editor/completion.tsx @@ -7,7 +7,7 @@ import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; import { Box, IconButton, Stack, Typography } from '@mui/material'; import { grey } from '@mui/material/colors'; -import EditorWrapper from 'components/organisms/playground/editor/wrapper'; +import EditorWrapper from 'components/organisms/playground/editor/EditorWrapper'; import 'draft-js/dist/Draft.css'; diff --git a/src/chainlit/frontend/src/components/organisms/playground/editor/formatted.tsx b/src/chainlit/frontend/src/components/organisms/playground/editor/formatted.tsx index 844d581a31..fb80b7e1ad 100644 --- a/src/chainlit/frontend/src/components/organisms/playground/editor/formatted.tsx +++ b/src/chainlit/frontend/src/components/organisms/playground/editor/formatted.tsx @@ -20,7 +20,7 @@ import { toast } from 'react-hot-toast'; import { useSetRecoilState } from 'recoil'; import { useIsFirstRender } from 'usehooks-ts'; -import EditorWrapper from 'components/organisms/playground/editor/wrapper'; +import EditorWrapper from 'components/organisms/playground/editor/EditorWrapper'; import { IPrompt } from 'state/chat'; import { modeState, variableState } from 'state/playground'; diff --git a/src/chainlit/frontend/src/components/organisms/playground/editor/template/index.tsx b/src/chainlit/frontend/src/components/organisms/playground/editor/template/index.tsx index d1e102b6a5..1bc79cb203 100644 --- a/src/chainlit/frontend/src/components/organisms/playground/editor/template/index.tsx +++ b/src/chainlit/frontend/src/components/organisms/playground/editor/template/index.tsx @@ -13,7 +13,7 @@ import { import { useState } from 'react'; import { useIsFirstRender } from 'usehooks-ts'; -import EditorWrapper from 'components/organisms/playground/editor/wrapper'; +import EditorWrapper from 'components/organisms/playground/editor/EditorWrapper'; import { IPrompt } from 'state/chat'; diff --git a/src/chainlit/frontend/src/components/organisms/playground/editor/variableModal.tsx b/src/chainlit/frontend/src/components/organisms/playground/editor/variableModal.tsx index 9ddcafdab8..c392db16a0 100644 --- a/src/chainlit/frontend/src/components/organisms/playground/editor/variableModal.tsx +++ b/src/chainlit/frontend/src/components/organisms/playground/editor/variableModal.tsx @@ -18,7 +18,7 @@ import AccentButton from 'components/atoms/buttons/accentButton'; import { playgroundState, variableState } from 'state/playground'; -import EditorWrapper from './wrapper'; +import EditorWrapper from './EditorWrapper'; const VariableModal = (): JSX.Element | null => { const [state, setState] = useState();