Skip to content

Commit

Permalink
feat: remove add images or object dropdown (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka authored Sep 14, 2023
1 parent c6f32fb commit 140dbdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
20 changes: 3 additions & 17 deletions src/routes/chat/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import Textarea from '$lib/components/textarea.svelte'
import Button from '$lib/components/button.svelte'
import Avatar from '$lib/components/avatar.svelte'
import Dropdown from '$lib/components/dropdown.svelte'
import DropdownItem from '$lib/components/dropdown-item.svelte'
import WakuObject from '$lib/objects/chat.svelte'
import { goto } from '$app/navigation'
Expand Down Expand Up @@ -114,21 +112,9 @@
<div class="chat-input-wrapper">
<Container>
<div class="chat-input">
<Dropdown up left>
<!-- TODO: make button "active" while dropdown is open -->
<Button variant="icon" slot="button">
<Add />
</Button>
<DropdownItem disabled onClick={() => console.log('Pic from Cam')}
>Pic from Cam</DropdownItem
>
<DropdownItem disabled onClick={() => console.log('Pic from Lib')}
>Pic from Lib</DropdownItem
>
<DropdownItem onClick={() => goto(ROUTES.OBJECTS($page.params.id))}
>Waku Object</DropdownItem
>
</Dropdown>
<Button variant="icon" on:click={() => goto(ROUTES.OBJECTS($page.params.id))}>
<Add />
</Button>
<Textarea
placeholder="Message"
autofocus
Expand Down
20 changes: 3 additions & 17 deletions src/routes/group/chat/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import Textarea from '$lib/components/textarea.svelte'
import Button from '$lib/components/button.svelte'
import Avatar from '$lib/components/avatar.svelte'
import Dropdown from '$lib/components/dropdown.svelte'
import DropdownItem from '$lib/components/dropdown-item.svelte'
import WakuObject from '$lib/objects/chat.svelte'
import { goto } from '$app/navigation'
Expand Down Expand Up @@ -221,21 +219,9 @@
<div class="chat-input-wrapper">
<Container>
<div class="chat-input">
<Dropdown up left>
<!-- TODO: make button "active" while dropdown is open -->
<Button variant="icon" slot="button">
<Add />
</Button>
<DropdownItem disabled onClick={() => console.log('Pic from Cam')}
>Pic from Cam</DropdownItem
>
<DropdownItem disabled onClick={() => console.log('Pic from Lib')}
>Pic from Lib</DropdownItem
>
<DropdownItem onClick={() => goto(ROUTES.OBJECTS($page.params.id))}
>Waku Object</DropdownItem
>
</Dropdown>
<Button variant="icon" on:click={() => goto(ROUTES.OBJECTS($page.params.id))}>
<Add />
</Button>
<Textarea
placeholder="Message"
bind:value={text}
Expand Down

1 comment on commit 140dbdd

@vercel
Copy link

@vercel vercel bot commented on 140dbdd Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.