File tree Expand file tree Collapse file tree 2 files changed +4
-30
lines changed Expand file tree Collapse file tree 2 files changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import TableHeaderCell from "../common/table/TableHeaderCell";
5
5
import TableBody from "../common/table/TableBody" ;
6
6
import TableRow from "../common/table/TableRow" ;
7
7
import TableRowCell from "../common/table/TableRowCell" ;
8
- import Tab from "../common/Tab" ;
9
8
import useWindowWidth from "../../hooks/useviewport" ;
10
9
11
10
export default function SdvCoreSection ( ) {
@@ -55,37 +54,12 @@ export default function SdvCoreSection() {
55
54
}
56
55
} ;
57
56
58
- const [ tabs , setTabs ] = useState ( [
59
- { label : "Downloads" , isActive : true } ,
60
- { label : "Users" , isActive : false } ,
61
- ] ) ;
62
-
63
- const clickTab = ( label ) => {
64
- setTabs ( ( prevTabs ) =>
65
- prevTabs . map ( ( tab ) => ( {
66
- ...tab ,
67
- isActive : tab . label === label ,
68
- } ) )
69
- ) ;
70
- } ;
71
-
72
57
return (
73
58
< div className = "flex justify-center bg-white" >
74
59
< div className = "container w-full flex flex-col py-12 md:py-16 lg:py-24 px-4 md:px-5 lg:px-0" >
75
60
< h1 className = "heading-600-lg pb-6 text-center md:leading-lg md:pb-12" >
76
61
SDV Core
77
62
</ h1 >
78
- < div className = "flex gap-2.5 lg:gap-9 border-b border-b-midnight-200 mb-6" >
79
- { tabs . map ( ( t ) => (
80
- < Tab
81
- key = { t . label }
82
- isActive = { t . isActive }
83
- onClick = { ( ) => clickTab ( t . label ) }
84
- >
85
- { t . label }
86
- </ Tab >
87
- ) ) }
88
- </ div >
89
63
< Table tableColDimensions = { tableColDimensions } >
90
64
< TableHeader >
91
65
< div className = "relative" >
Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ export default function SdvInNumbersSection() {
61
61
} ;
62
62
63
63
const [ tabs , setTabs ] = useState ( [
64
- { label : "Downloads " , isActive : true } ,
65
- { label : "Users " , isActive : false } ,
66
- { label : "Visualize " , isActive : false } ,
64
+ { label : "Visualize " , isActive : true } ,
65
+ { label : "Downloads " , isActive : false } ,
66
+ // { label: "Users ", isActive: false },
67
67
] ) ;
68
68
const activeTab = tabs . find ( ( t ) => t . isActive ) ;
69
69
@@ -106,7 +106,7 @@ export default function SdvInNumbersSection() {
106
106
) ) }
107
107
</ div >
108
108
< div className = "mb-12 lg:mb-24" >
109
- { ( activeTab . label === "Downloads" || activeTab . label === "Users" ) && (
109
+ { activeTab . label === "Downloads" && (
110
110
< Table tableColDimensions = { tableColDimensions } >
111
111
< TableHeader >
112
112
< div className = "relative" >
You can’t perform that action at this time.
0 commit comments