Skip to content

Commit 297f14d

Browse files
committed
Add empty indicators
1 parent 9855751 commit 297f14d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apps/builder/app/builder/features/settings-panel/resource-panel.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
Label,
3737
Select,
3838
SmallIconButton,
39+
Text,
3940
TextArea,
4041
Tooltip,
4142
theme,
@@ -345,6 +346,11 @@ export const SearchParams = ({
345346
}}
346347
/>
347348
))}
349+
{searchParams.length === 0 && (
350+
<Text color="subtle" align="center">
351+
No search params
352+
</Text>
353+
)}
348354
</Grid>
349355
</Grid>
350356
);
@@ -458,6 +464,11 @@ export const Headers = ({
458464
}}
459465
/>
460466
))}
467+
{headers.length === 0 && (
468+
<Text color="subtle" align="center">
469+
No headers
470+
</Text>
471+
)}
461472
</Grid>
462473
</Grid>
463474
);

0 commit comments

Comments
 (0)