Skip to content

Add status message for no Applications #1139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,18 @@ const CopilotApplications: FC<{
return (
<div>
{
tableData.length > 0 && (
tableData.length > 0 ? (
<Table
columns={tableColumns}
data={tableData}
disableSorting
removeDefaultSort
preventDefault
/>
) : (
<div className={styles.noApplications}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a more descriptive class name for styles.noApplications to clearly indicate its purpose, such as styles.noApplicationsMessage.

<span>No Applications yet</span>
</div>
)
}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@
color: $teal-100;
}
}

.noApplications {
margin-top: $sp-6;
display: flex;
justify-content: center;
align-items: center;
font-size: large;
}