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.

Before, it said 'Add student' even on the staff page
  • Loading branch information
amantri committed Nov 18, 2023
1 parent 0d7fe11 commit d2e15ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 67 deletions.
69 changes: 5 additions & 64 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 d2e15ed

Please sign in to comment.