Move CodeBlock and related files to components folder
- Moved CodeBlock and CodeButtons from views to components folder. - Updated import paths for CodeBlock in CurrentMessage.tsx and MessageContainer.tsx. - Adjusted import path for CodeButtons in CodeBlock.
This commit is contained in:
parent
4acbf8a8eb
commit
efd3bc0e14
@ -3,7 +3,7 @@ import React, { useEffect } from "react";
|
||||
import { keyframes } from "@emotion/react";
|
||||
import { Container, Text } from "@mantine/core";
|
||||
import { useAppDispatch, useAppSelector } from '@/views/hooks';
|
||||
import CodeBlock from "@/views/CodeBlock";
|
||||
import CodeBlock from "@/views/components/CodeBlock";
|
||||
|
||||
import {
|
||||
newMessage,
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
import { Center, Text, Accordion, Box, Stack, Container, Divider } from "@mantine/core";
|
||||
import React from "react";
|
||||
import CodeBlock from "@/views/CodeBlock";
|
||||
import CodeBlock from "@/views/components/CodeBlock";
|
||||
import MessageHeader from "@/views/MessageHeader";
|
||||
|
||||
import { useAppSelector } from '@/views/hooks';
|
||||
|
@ -3,7 +3,7 @@ import React from "react";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||
import { okaidia } from "react-syntax-highlighter/dist/esm/styles/prism";
|
||||
import CodeButtons from "@/views/CodeButtons";
|
||||
import CodeButtons from "./CodeButtons";
|
||||
|
||||
const CodeBlock = (props: any) => {
|
||||
const { messageText, messageType } = props;
|
Loading…
x
Reference in New Issue
Block a user