Skip to content

Commit

Permalink
Merge pull request #38 from cloudmix-dev/bugfix/excalidraw-imports
Browse files Browse the repository at this point in the history
Fix Excalidraw imports
  • Loading branch information
samlaycock authored Jan 6, 2024
2 parents 39d6050 + a1e16d0 commit eb9a022
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-pumpkins-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudmix-dev/react": patch
---

Fix Excalidraw imports
11 changes: 5 additions & 6 deletions packages/react/src/components/excalidraw-diagram.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {
Excalidraw,
THEME,
convertToExcalidrawElements,
} from "@excalidraw/excalidraw";
import { parseMermaidToExcalidraw } from "@excalidraw/mermaid-to-excalidraw";
import * as excalidraw from "@excalidraw/excalidraw";
import * as excalidrawMermaid from "@excalidraw/mermaid-to-excalidraw";

import { useEffect, useRef, useState } from "react";
import { cn } from "../utils";

const { Excalidraw, THEME, convertToExcalidrawElements } = excalidraw;
const { parseMermaidToExcalidraw } = excalidrawMermaid;

export interface ExcalidrawDiagramProps {
className?: string;
mermaid?: string;
Expand Down

0 comments on commit eb9a022

Please sign in to comment.