upload flow function inside modal
This commit is contained in:
parent
1dea005599
commit
647d7d2759
1 changed files with 3 additions and 1 deletions
|
|
@ -7,12 +7,14 @@ import {
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
import { Fragment, useContext, useRef, useState } from "react";
|
import { Fragment, useContext, useRef, useState } from "react";
|
||||||
import { PopUpContext } from "../../contexts/popUpContext";
|
import { PopUpContext } from "../../contexts/popUpContext";
|
||||||
|
import { TabsContext } from "../../contexts/tabsContext";
|
||||||
import ButtonBox from "./buttonBox";
|
import ButtonBox from "./buttonBox";
|
||||||
|
|
||||||
export default function ImportModal() {
|
export default function ImportModal() {
|
||||||
const [open, setOpen] = useState(true);
|
const [open, setOpen] = useState(true);
|
||||||
const { closePopUp } = useContext(PopUpContext);
|
const { closePopUp } = useContext(PopUpContext);
|
||||||
const ref = useRef();
|
const ref = useRef();
|
||||||
|
const {uploadFlow} = useContext(TabsContext)
|
||||||
function setModalOpen(x: boolean) {
|
function setModalOpen(x: boolean) {
|
||||||
setOpen(x);
|
setOpen(x);
|
||||||
if (x === false) {
|
if (x === false) {
|
||||||
|
|
@ -100,7 +102,7 @@ export default function ImportModal() {
|
||||||
icon={
|
icon={
|
||||||
<ComputerDesktopIcon className="h-10 w-10 flex-shrink-0" />
|
<ComputerDesktopIcon className="h-10 w-10 flex-shrink-0" />
|
||||||
}
|
}
|
||||||
onClick={() => console.log("sdsds")}
|
onClick={() => {uploadFlow()}}
|
||||||
textColor="text-blue-500"
|
textColor="text-blue-500"
|
||||||
title="Local file"
|
title="Local file"
|
||||||
></ButtonBox>
|
></ButtonBox>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue