File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ import { Badge } from "@/components/ui/badge"
1313import { Button } from "@/components/ui/button"
1414import { X , ChevronDown } from "lucide-react"
1515import { cn } from "@/lib/utils"
16- import { ToolDetailModal } from "../components/ToolDetailModel"
16+ import {
17+ ToolDetailModal ,
18+ ToolDetailModalProps ,
19+ } from "../components/ToolDetailModel"
1720interface EnAccessToolMapProps {
1821 setIsModalOpen : ( value : boolean ) => void
1922}
@@ -342,8 +345,9 @@ const EnAccessToolMap = ({}: EnAccessToolMapProps) => {
342345 </ div >
343346 { selectedTool && (
344347 < ToolDetailModal
345- // @ts -ignore
346- tool = { selectedTool as any }
348+ tool = {
349+ selectedTool as unknown as NonNullable < ToolDetailModalProps [ "tool" ] >
350+ }
347351 isOpen = { isToolModalOpen }
348352 onClose = { ( ) => setIsToolModalOpen ( false ) }
349353 />
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111 DialogClose ,
1212} from "@/components/ui/dialog"
1313
14- interface ToolDetailModalProps {
14+ export interface ToolDetailModalProps {
1515 isOpen : boolean
1616 onClose : ( ) => void
1717 tool : {
You can’t perform that action at this time.
0 commit comments