File tree Expand file tree Collapse file tree
components/MeetInfo-Table Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from "react";
22import { useTable } from "react-table" ;
33import { TableWrapper } from "./MeetInfoTable.style" ;
44
5- const Table = ( { columns, data } ) => {
5+ const Table = ( { columns, data, showHeader = true } ) => {
66 const {
77 getTableProps,
88 getTableBodyProps,
@@ -16,12 +16,16 @@ const Table = ({ columns, data }) => {
1616
1717 return (
1818 < TableWrapper >
19- < h1 className = "meetings-table-title" >
20- < a href = "#meetings" > Layer5 Meetings</ a >
21- </ h1 >
22- < h3 className = "meetings-table-subtitle" >
23- Everyone is welcome to join. Engage!
24- </ h3 >
19+ { showHeader && (
20+ < >
21+ < h1 className = "meetings-table-title" >
22+ < a href = "#meetings" > Layer5 Meetings</ a >
23+ </ h1 >
24+ < h3 className = "meetings-table-subtitle" >
25+ Everyone is welcome to join. Engage!
26+ </ h3 >
27+ </ >
28+ ) }
2529 < table name = "meetings" id = "meetings" { ...getTableProps ( ) } >
2630 < thead >
2731 { headerGroups . map ( ( headerGroup ) => (
Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ const Calendar = () => {
138138 < div className = "archived-meetings-section" >
139139 < h2 > Archived Meetings</ h2 >
140140 < p > These meeting series have concluded and are no longer active.</ p >
141- < Table columns = { columns } data = { archivedData } />
141+ < Table columns = { columns } data = { archivedData } showHeader = { false } />
142142 </ div >
143143 ) }
144-
144+
145145 </ div >
146146 < br />
147147 < Container >
You can’t perform that action at this time.
0 commit comments