1- import React , { ChangeEvent , useEffect , useState } from "react" ;
2- import { Box , Button , Grid , Pagination , Tab , Tabs } from "@mui/material" ;
1+ import React , { ChangeEvent , useEffect , useState } from "react" ;
2+ import { Box , Button , Grid , Pagination , Tab , Tabs } from "@mui/material" ;
33
4- import { RootState } from "../types/data" ;
5- import { useDispatch , useSelector } from "react-redux" ;
6- import { fetchDatasets } from "../actions/dataset" ;
4+ import { RootState } from "../types/data" ;
5+ import { useDispatch , useSelector } from "react-redux" ;
6+ import { fetchDatasets } from "../actions/dataset" ;
77
8- import { a11yProps , TabPanel } from "./tabs/TabComponent" ;
8+ import { a11yProps , TabPanel } from "./tabs/TabComponent" ;
99import DatasetCard from "./datasets/DatasetCard" ;
1010import Layout from "./Layout" ;
11- import { Link as RouterLink } from "react-router-dom" ;
12- import { ErrorModal } from "./errors/ErrorModal" ;
13- import { DatasetOut } from "../openapi/v2" ;
11+ import { Link as RouterLink } from "react-router-dom" ;
12+ import { ErrorModal } from "./errors/ErrorModal" ;
13+ import { DatasetOut } from "../openapi/v2" ;
1414import config from "../app.config" ;
1515
1616const tab = {
@@ -83,10 +83,10 @@ export const Explore = (): JSX.Element => {
8383 return (
8484 < Layout >
8585 { /*Error Message dialogue*/ }
86- < ErrorModal errorOpen = { errorOpen } setErrorOpen = { setErrorOpen } />
86+ < ErrorModal errorOpen = { errorOpen } setErrorOpen = { setErrorOpen } />
8787 < Grid container spacing = { 4 } >
8888 < Grid item xs >
89- < Box sx = { { borderBottom : 1 , borderColor : "divider" } } >
89+ < Box sx = { { borderBottom : 1 , borderColor : "divider" } } >
9090 < Tabs
9191 value = { selectedTabIndex }
9292 onChange = { handleTabChange }
@@ -111,6 +111,7 @@ export const Explore = (): JSX.Element => {
111111 thumbnailId = { dataset . thumbnail_id }
112112 frozen = { dataset . frozen }
113113 frozenVersionNum = { dataset . frozen_version_num }
114+ download = { true }
114115 />
115116 </ Grid >
116117 ) ;
@@ -129,7 +130,7 @@ export const Explore = (): JSX.Element => {
129130 component = { RouterLink }
130131 to = "/create-dataset"
131132 variant = "contained"
132- sx = { { m : 2 } }
133+ sx = { { m : 2 } }
133134 >
134135 Create Dataset
135136 </ Button >
@@ -140,7 +141,7 @@ export const Explore = (): JSX.Element => {
140141 ) }
141142 </ Grid >
142143 { datasets . length !== 0 ? (
143- < Box display = "flex" justifyContent = "center" sx = { { m : 1 } } >
144+ < Box display = "flex" justifyContent = "center" sx = { { m : 1 } } >
144145 < Pagination
145146 count = { Math . ceil ( pageMetadata . total_count / limit ) }
146147 page = { currPageNum }
@@ -166,6 +167,7 @@ export const Explore = (): JSX.Element => {
166167 created = { dataset . created }
167168 description = { dataset . description }
168169 thumbnailId = { dataset . thumbnail_id }
170+ download = { true }
169171 />
170172 </ Grid >
171173 ) ;
@@ -184,7 +186,7 @@ export const Explore = (): JSX.Element => {
184186 component = { RouterLink }
185187 to = "/create-dataset"
186188 variant = "contained"
187- sx = { { m : 2 } }
189+ sx = { { m : 2 } }
188190 >
189191 Create Dataset
190192 </ Button >
@@ -195,7 +197,7 @@ export const Explore = (): JSX.Element => {
195197 ) }
196198 </ Grid >
197199 { datasets . length !== 0 ? (
198- < Box display = "flex" justifyContent = "center" sx = { { m : 1 } } >
200+ < Box display = "flex" justifyContent = "center" sx = { { m : 1 } } >
199201 < Pagination
200202 count = { Math . ceil ( pageMetadata . total_count / limit ) }
201203 page = { currPageNum }
@@ -208,9 +210,9 @@ export const Explore = (): JSX.Element => {
208210 < > </ >
209211 ) }
210212 </ TabPanel >
211- < TabPanel value = { selectedTabIndex } index = { 4 } />
212- < TabPanel value = { selectedTabIndex } index = { 2 } />
213- < TabPanel value = { selectedTabIndex } index = { 3 } />
213+ < TabPanel value = { selectedTabIndex } index = { 4 } />
214+ < TabPanel value = { selectedTabIndex } index = { 2 } />
215+ < TabPanel value = { selectedTabIndex } index = { 3 } />
214216 </ Grid >
215217 </ Grid >
216218 </ Layout >
0 commit comments