Skip to content

Commit

Permalink
upload flow function inside modal
Browse files Browse the repository at this point in the history
  • Loading branch information
anovazzi1 committed Mar 24, 2023
1 parent 1dea005 commit 647d7d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/src/modals/importModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import {
} from "@heroicons/react/24/outline";
import { Fragment, useContext, useRef, useState } from "react";
import { PopUpContext } from "../../contexts/popUpContext";
import { TabsContext } from "../../contexts/tabsContext";
import ButtonBox from "./buttonBox";

export default function ImportModal() {
const [open, setOpen] = useState(true);
const { closePopUp } = useContext(PopUpContext);
const ref = useRef();
const {uploadFlow} = useContext(TabsContext)
function setModalOpen(x: boolean) {
setOpen(x);
if (x === false) {
Expand Down Expand Up @@ -100,7 +102,7 @@ export default function ImportModal() {
icon={
<ComputerDesktopIcon className="h-10 w-10 flex-shrink-0" />
}
onClick={() => console.log("sdsds")}
onClick={() => {uploadFlow()}}
textColor="text-blue-500"
title="Local file"
></ButtonBox>
Expand Down

0 comments on commit 647d7d2

Please sign in to comment.