Skip to content

Commit

Permalink
[web] fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomKnight287 committed Mar 8, 2024
1 parent 5852199 commit da4d047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/solutions/[id]/page.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Button } from "@/components/ui/button";
import { languages } from "@/constants/languages";
import { File } from "@repo/db/types";
import MonacoEditor from "@repo/monaco";
import {Editor as MonacoEditor} from "@repo/monaco/exports";
import { useState } from "react";

function SolutionFiles({ files }: { files: File[] }) {
Expand All @@ -22,7 +22,7 @@ function SolutionFiles({ files }: { files: File[] }) {
))}
</div>
<MonacoEditor
activeFile={activeFile}
key={activeFile}
options={{ readOnly: true }}
value={
files.find((file, index) => `${file.name}-${index}` === activeFile)
Expand Down

0 comments on commit da4d047

Please sign in to comment.