Skip to content

Commit 48e9136

Browse files
Sophie20202Sophie Mukamugema
andauthored
Removing commented-out sections that are not being used (#529)
Co-authored-by: Sophie Mukamugema <[email protected]>
1 parent 8a15ed9 commit 48e9136

File tree

3 files changed

+3
-36
lines changed

3 files changed

+3
-36
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/AdminDashboard.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -127,36 +127,6 @@ function SupAdDashboard() {
127127
<div className="flex flex-col grow bg-light-bg dark:bg-dark-frame-bg">
128128
<div className="flex flex-row justify-center pb-8">
129129
<div className="w-[100%] h-[100%]">
130-
{/* <div className="grid grid-cols-2 mb-12 md:mb-24 lg:mb-0 lg:grid-cols-4">
131-
<Card text={t('Coordinators')} number={47} />
132-
<Card text={t('Trainees')} number={560} />
133-
<Card text={t('Cohorts')} number={8} />
134-
<Card text={t('Performance')} number={4} />
135-
</div>
136-
<Chart title={t('Overall performance')} /> */}
137-
<div>
138-
{/* <div className="bg-light-bg dark:bg-dark-frame-bg ">
139-
<div className="flex px-10 pt-24 pb-8 items-left lg:px-60"> */}
140-
{/* <div className="flex gap-2 pt-5">
141-
{user?.role === 'coordinator' || undefined ? (
142-
''
143-
) : (
144-
<Button
145-
variant="primary"
146-
size="lg"
147-
data-testid="inviteModel"
148-
style="m-0"
149-
onClick={inviteModel}
150-
>
151-
{t('Invite an organization')}
152-
</Button>
153-
)}
154-
</div> */}
155-
</div>
156-
157-
{/* </div>
158-
</div> */}
159-
160130
<Comingsoon title="Dashboard" />
161131
</div>
162132
</div>

src/pages/AdminTraineeDashboard.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ function AdminTraineeDashboard() {
109109
}
110110

111111
const [deleteFromCohort, setDeleteFromCohort] = useState('');
112-
//const [status, setStatus] = useState(row.original?.Status?.status);
113-
// Define state variables to store reason and date
112+
114113
const [reason, setReason] = useState('');
115-
// const [date, setDate] = useState('');
116114
const currentDate = new Date().toISOString().split('T')[0]; // Get the current date
117115

118116
// Function to handle the reason input change
@@ -247,8 +245,7 @@ function AdminTraineeDashboard() {
247245
const columns = [
248246
{ Header: t('name'), accessor: 'name' },
249247
{ Header: t('email'), accessor: 'email' },
250-
// { Header: t('rating'), accessor: 'rating' },
251-
// { Header: t('Team'), accessor: 'team' },
248+
252249
{ Header: t('cohort'), accessor: 'cohort' },
253250
{ Header: t('program'), accessor: 'program' },
254251
{

0 commit comments

Comments
 (0)