Skip to content

Commit

Permalink
change copy for no preview environments (#3831)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Oct 18, 2023
1 parent e484a9d commit 4887989
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ const PreviewEnvGrid: React.FC<PreviewEnvGridProps> = ({
}, [deploymentTargets, searchValue, sort]);

if (filteredEnvs.length === 0) {
let copy = "No preview environments exist. To get started with preview environments, enable them in the Settings tab of an existing application."
if (searchValue !== "") {
copy = "No matching environments were found."
}
return (
<Fieldset>
<Container row>
<PlaceholderIcon src={notFound} />
<Text color="helper">No matching environments were found.</Text>
<Text color="helper">{copy}</Text>
</Container>
</Fieldset>
);
Expand Down

0 comments on commit 4887989

Please sign in to comment.