Skip to content

Commit

Permalink
chore: added initial empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Dec 6, 2024
1 parent 5e7cac1 commit b02537e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/components/BarChartGrouped/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,13 @@ const BarChartGrouped = (): JSX.Element => {
<p>Loading...</p>
) : (
<div className="bar-chart-container" data-testid="bar-chart">
{chartData.length === 0 && <EmptySection
{chartData.length === 0 && !searchParameters && <EmptySection
pictogram="Touch"
title="You don't have any openings to show yet"
description="Select a filter to bring up the openings"
fill="#0073E6"
/>}
{chartData.length === 0 && searchParameters && <EmptySection
pictogram="UserSearch"
title="No results found"
description={`Nothing found when searching for ${searchParameters}, try adjusting your filters to find what you want.`}
Expand Down

0 comments on commit b02537e

Please sign in to comment.