about summary refs log tree commit diff
path: root/src/components/Menu
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-01-14 12:53:13 +0000
committerGitHub <noreply@github.com>2025-01-14 12:53:13 +0000
commit479a4a92e10e8d12d3e164a65970bd2de4abfe8a (patch)
treed73c7c5db743d50c7e43528dc37e1f2a0ca0e24d /src/components/Menu
parent1fc889b883ffd666b4c439738f1f5e97496d55e6 (diff)
downloadvoidsky-479a4a92e10e8d12d3e164a65970bd2de4abfe8a.tar.zst
Account quick switch on web (#7190)
* account quick switch on web

* dont show line if one account

* switch account label text

* add chevron hover state

* swagged up hover state

* add icons

* tune scale anim and respect prefers-reduced-motion

* fix reduced motion

* fix placeholder position

* move menu components out to separate component

* Pipe through outer handlers to Button

* Abstract lag in control.isOpen state

* add profile info into empty space

* fix tablet

* Alternative

* Revert "Alternative"

This reverts commit 050ab9595ef3bbc32529ad6588e4690d37539fbe.

* maybe fix flicker issue

* just do 50ms when not active

* delay other animations

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/components/Menu')
-rw-r--r--src/components/Menu/index.web.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Menu/index.web.tsx b/src/components/Menu/index.web.tsx
index 6bbb8c21c..d1863e478 100644
--- a/src/components/Menu/index.web.tsx
+++ b/src/components/Menu/index.web.tsx
@@ -202,7 +202,7 @@ export function Outer({
   )
 }
 
-export function Item({children, label, onPress, ...rest}: ItemProps) {
+export function Item({children, label, onPress, style, ...rest}: ItemProps) {
   const t = useTheme()
   const {control} = useMenuContext()
   const {
@@ -248,6 +248,7 @@ export function Item({children, label, onPress, ...rest}: ItemProps) {
                 ? t.atoms.bg_contrast_25
                 : t.atoms.bg_contrast_50,
             ],
+          style,
         ])}
         {...web({
           onMouseEnter,