From 54ca096c32832a3a1acc47d19b4c4dd60d7cf537 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Wed, 21 Jun 2023 09:37:44 +0200 Subject: [PATCH] extract svg from component --- src/lib/icons/IconBranch.svelte | 18 ++++++++++++++++++ src/lib/icons/index.ts | 1 + .../projects_new/[projectId]/BranchLane.svelte | 6 ++---- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/lib/icons/IconBranch.svelte diff --git a/src/lib/icons/IconBranch.svelte b/src/lib/icons/IconBranch.svelte new file mode 100644 index 000000000..8f4237361 --- /dev/null +++ b/src/lib/icons/IconBranch.svelte @@ -0,0 +1,18 @@ + + + + + diff --git a/src/lib/icons/index.ts b/src/lib/icons/index.ts index 9594cae09..aa5c62a73 100644 --- a/src/lib/icons/index.ts +++ b/src/lib/icons/index.ts @@ -28,3 +28,4 @@ export { default as IconFolderPlus } from './IconFolderPlus.svelte'; export { default as IconEmail } from './IconEmail.svelte'; export { default as IconBookmarkFilled } from './IconBookmarkFilled.svelte'; export { default as IconAISparkles } from './IconAISparkles.svelte'; +export { default as IconBranch } from './IconBranch.svelte'; diff --git a/src/routes/projects_new/[projectId]/BranchLane.svelte b/src/routes/projects_new/[projectId]/BranchLane.svelte index 2244fd048..2e149cf5b 100644 --- a/src/routes/projects_new/[projectId]/BranchLane.svelte +++ b/src/routes/projects_new/[projectId]/BranchLane.svelte @@ -6,6 +6,7 @@ import { createFile } from './helpers'; import FileCard from './FileCard.svelte'; import { invoke } from '@tauri-apps/api'; + import { IconBranch } from '$lib/icons'; export let branchId: string; export let name: string; @@ -75,10 +76,7 @@ class="gb-bg-1 gb-border-1 flex max-h-full w-96 shrink-0 flex-col overflow-y-hidden rounded-xl border px-2 pb-2 shadow" >
- - - - + {name}