Skip to content

Commit 530a90a

Browse files
authored
Merge pull request #1139 from topcoder-platform/PM-1269
Add status message for no Applications
2 parents bc1f9b4 + f9328c1 commit 530a90a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/CopilotApplications.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,18 @@ const CopilotApplications: FC<{
9090
return (
9191
<div>
9292
{
93-
tableData.length > 0 && (
93+
tableData.length > 0 ? (
9494
<Table
9595
columns={tableColumns}
9696
data={tableData}
9797
disableSorting
9898
removeDefaultSort
9999
preventDefault
100100
/>
101+
) : (
102+
<div className={styles.noApplications}>
103+
<span>No Applications yet</span>
104+
</div>
101105
)
102106
}
103107
</div>

src/apps/copilots/src/pages/copilot-opportunity-details/tabs/copilot-applications/styles.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@
1212
color: $teal-100;
1313
}
1414
}
15+
16+
.noApplications {
17+
margin-top: $sp-6;
18+
display: flex;
19+
justify-content: center;
20+
align-items: center;
21+
font-size: large;
22+
}

0 commit comments

Comments
 (0)