diff --git a/react/src/App.js b/react/src/App.js index 21244a1..d707524 100644 --- a/react/src/App.js +++ b/react/src/App.js @@ -7,6 +7,7 @@ function App() { const [tableQuarry, setTableQuarry] = useState(''); const [columns, setColumns] = useState(''); const [results, setResults] = useState(''); + const [isVisible, setIsVisible] = useState(true); const fetchDataFromAPI = async (dataset, table, column) => { try { @@ -24,41 +25,80 @@ function App() { fetchDataFromAPI(datasetQuarry, tableQuarry, columns); }; + const toggleVisibility = () => { + setIsVisible(!isVisible); + }; + return ( -