mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 20:18:39 +00:00
🐛 Fix label visualization on team leave modal.
This commit is contained in:
parent
f83c8d4523
commit
20ecc79cd1
@ -33,12 +33,10 @@
|
|||||||
(s/def ::created-at ::us/inst)
|
(s/def ::created-at ::us/inst)
|
||||||
(s/def ::modified-at ::us/inst)
|
(s/def ::modified-at ::us/inst)
|
||||||
(s/def ::is-pinned ::us/boolean)
|
(s/def ::is-pinned ::us/boolean)
|
||||||
(s/def ::photo ::us/string)
|
|
||||||
|
|
||||||
(s/def ::team
|
(s/def ::team
|
||||||
(s/keys :req-un [::id
|
(s/keys :req-un [::id
|
||||||
::name
|
::name
|
||||||
::photo
|
|
||||||
::created-at
|
::created-at
|
||||||
::modified-at]))
|
::modified-at]))
|
||||||
|
|
||||||
|
|||||||
@ -166,7 +166,7 @@
|
|||||||
[{:keys [members profile team accept]}]
|
[{:keys [members profile team accept]}]
|
||||||
(let [form (fm/use-form :spec ::leave-modal-form :initial {})
|
(let [form (fm/use-form :spec ::leave-modal-form :initial {})
|
||||||
options (into [{:value "" :label (tr "modals.leave-and-reassign.select-memeber-to-promote")}]
|
options (into [{:value "" :label (tr "modals.leave-and-reassign.select-memeber-to-promote")}]
|
||||||
(map #(hash-map :name (:name %) :value (str (:id %))) members))
|
(map #(hash-map :label (:name %) :value (str (:id %))) members))
|
||||||
|
|
||||||
on-cancel
|
on-cancel
|
||||||
(mf/use-callback (st/emitf (modal/hide)))
|
(mf/use-callback (st/emitf (modal/hide)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user