diff --git a/src/components/Lists.js b/src/components/Lists.js index d27143c..b3cf4d5 100644 --- a/src/components/Lists.js +++ b/src/components/Lists.js @@ -1,13 +1,16 @@ import React, { useState,useEffect } from 'react'; -import { Button, Table } from '@mantine/core'; +import { Dialog, Button, Table, Text, Group } from '@mantine/core'; import { Link } from 'react-router-dom'; import {http} from "../middleware/axiosConfig"; +import { useDisclosure } from '@mantine/hooks'; const List = () => { // Initialize state for user data const [ userData, setUserData] = useState([]); + const [opened, { toggle, close }] = useDisclosure(false); + //useEffect hook - useEffect(() => { fetchData(); @@ -60,14 +63,30 @@ const List = () => {