Skip to content

Commit

Permalink
chore: lint feedback
Browse files Browse the repository at this point in the history
Use '${searchTerm}', use '' to show detail type, and found another '.length>0'.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
  • Loading branch information
deboer-tim committed Sep 20, 2023
1 parent 75e18d1 commit 615893f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/renderer/src/lib/ui/EmptyScreen.svelte
Expand Up @@ -6,7 +6,7 @@ import { onMount } from 'svelte';
export let icon: any;
export let title = 'No title';
export let message = 'Message';
export let detail = undefined;
export let detail = '';
export let commandline = '';
export let hidden = false;
Expand Down Expand Up @@ -50,7 +50,7 @@ let copyTextDivElement: HTMLDivElement;
{#if detail}
<span class="text-gray-700">{detail}</span>
{/if}
{#if commandline.length > 0}
{#if commandline}
<div class="flex flex-row bg-charcoal-900 items-center justify-between rounded-sm p-3 mt-4">
<div class="font-mono text-gray-400" bind:this="{copyTextDivElement}" data-testid="copyTextDivElement">
{commandline}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/lib/ui/FilteredEmptyScreen.svelte
Expand Up @@ -6,7 +6,7 @@ export let icon: any;
export let kind: string;
export let searchTerm: string;
$: filter = searchTerm && searchTerm.length > 20 ? 'filter' : `'` + searchTerm + `'`;
$: filter = searchTerm && searchTerm.length > 20 ? 'filter' : `'${searchTerm}'`;
</script>

<EmptyScreen
Expand Down

0 comments on commit 615893f

Please sign in to comment.