Skip to content

Commit 48946b0

Browse files
committed
fix: hide table header in archived meetings section
Signed-off-by: Soham Babrekar <soham.babrekar@gmail.com>
1 parent 549a883 commit 48946b0

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/components/MeetInfo-Table/index.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import { useTable } from "react-table";
33
import { 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) => (

src/sections/Community/Calendar/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)