Skip to content

Commit

Permalink
feat: replace babbles icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka committed Jan 22, 2024
1 parent 92ce572 commit 79c4f6d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 38 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/dicebear.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
export let scale = 75
export let radius = 50
const avatarSize = (size / 2) as any // FIXME: the carbon design icons have native sizes 15, 20, 24 and 32. We should stick to those
// FIXME: the carbon design icons have native sizes 16, 20, 24 and 32. We should stick to those
const avatarSize = (size / 2) as unknown as 16 | 20 | 24 | 32
</script>

{#if style === 'user'}
Expand Down
29 changes: 0 additions & 29 deletions src/lib/components/icons/babbles.svelte

This file was deleted.

5 changes: 2 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { AddComment, Events } from 'carbon-icons-svelte'
import { AddComment, Events, IbmWatsonAssistant } from 'carbon-icons-svelte'
// Components
import Avatar from '$lib/components/avatar.svelte'
Expand All @@ -10,7 +10,6 @@
import Loading from '$lib/components/loading.svelte'
import AuthenticatedOnly from '$lib/components/authenticated-only.svelte'
import Layout from '$lib/components/layout.svelte'
import Babbles from '$lib/components/icons/babbles.svelte'
// Stores
import { profile } from '$lib/stores/profile'
Expand Down Expand Up @@ -181,7 +180,7 @@
<Events />
{:else if isBabbles(chat)}
<span class="truncate">{chat?.name}</span>
<Babbles />
<IbmWatsonAssistant />
{:else}
<span class="truncate">
{userDisplayName(otherUser)}
Expand Down
12 changes: 9 additions & 3 deletions src/routes/babbles/chat/[id]/[[thread_id]]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<script lang="ts">
import { beforeUpdate, afterUpdate, onMount } from 'svelte'
import { ArrowUp, ChevronLeft, Close, Checkmark, Settings } from 'carbon-icons-svelte'
import {
ArrowUp,
ChevronLeft,
Close,
Checkmark,
IbmWatsonAssistant,
Settings,
} from 'carbon-icons-svelte'
import Container from '$lib/components/container.svelte'
import Header from '$lib/components/header.svelte'
Expand All @@ -23,7 +30,6 @@
import { walletStore } from '$lib/stores/wallet'
import { formatTimestamp } from '$lib/utils/format'
import { errorStore } from '$lib/stores/error'
import Babbles from '$lib/components/icons/babbles.svelte'
let div: HTMLElement
let autoscroll = true
Expand Down Expand Up @@ -170,7 +176,7 @@
{chat?.name}
</span>
<span class="group-icon">
<Babbles />
<IbmWatsonAssistant />
</span>
</svelte:fragment>
<svelte:fragment slot="right">
Expand Down
4 changes: 2 additions & 2 deletions src/routes/invite/[address]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
Events,
CopyLink,
Close,
IbmWatsonAssistant,
} from 'carbon-icons-svelte'
import Babbles from '$lib/components/icons/babbles.svelte'
import Button from '$lib/components/button.svelte'
import Container from '$lib/components/container.svelte'
Expand Down Expand Up @@ -213,7 +213,7 @@
<ButtonBlock borderBottom on:click={() => goto(routes.BABBLES_NEW)}>
<Container direction="row" justify="space-between" align="center" alignItems="center">
<div class="icon">
<Babbles size={20} /> Create babbles
<IbmWatsonAssistant size={20} /> Create babbles
</div>
<div>
<Button variant="icon">
Expand Down

0 comments on commit 79c4f6d

Please sign in to comment.