Skip to content

Commit

Permalink
Use the type param in the table, to ensure we refer to staff on the s…
Browse files Browse the repository at this point in the history
…taff page. (#235)

Before, it said 'Add student' even on the staff page
  • Loading branch information
amantri authored Nov 18, 2023
1 parent 0d7fe11 commit 70a9abc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 69 deletions.
74 changes: 8 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,15 @@ export default function EnhancedTable<
gap={1.5}
>
<Image src={emptyState} alt="empty roster" width={250} />
<p>You have no students yet</p>
<p>You have no {type.toLowerCase()} yet</p>
<p style={{ color: "var(--grey-20)", textAlign: "center" }}>
Start building your class roster by adding a student.
Start building your roster by adding a {type.toLocaleLowerCase()}.
</p>
<button
onClick={() => setShowInput(true)}
className={`${$button.default}`}
>
Add Student
Add {type}
</button>
</Box>
</Container>
Expand Down

0 comments on commit 70a9abc

Please sign in to comment.