(feat:mermaid) dont pass isDarkTheme

This commit is contained in:
ManishMadan2882
2025-05-06 04:38:38 +05:30
parent 98856b39ac
commit 72e51bb072
3 changed files with 2 additions and 3 deletions

View File

@@ -6,11 +6,12 @@ import { oneLight, vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/
import { MermaidRendererProps } from './types';
import { useSelector } from 'react-redux';
import { selectStatus } from '../conversation/conversationSlice';
import { useDarkTheme } from '../hooks';
const MermaidRenderer: React.FC<MermaidRendererProps> = ({
code,
isDarkTheme,
}) => {
const [isDarkTheme] = useDarkTheme();
const diagramId = useRef(`mermaid-${crypto.randomUUID()}`);
const status = useSelector(selectStatus);
const [error, setError] = useState<string | null>(null);

View File

@@ -26,5 +26,4 @@ export type InputProps = {
export type MermaidRendererProps = {
code: string;
isDarkTheme: boolean;
};