Commit 85919b61 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/i18n' into 'main'

fix i18n in WaitRoom

See merge request !387
parents 897615a4 509db8bc
Pipeline #28129 passed with stages
in 10 minutes and 27 seconds
...@@ -76,7 +76,7 @@ export const TpPopover: React.FC< ...@@ -76,7 +76,7 @@ export const TpPopover: React.FC<
}> }>
> = ({ children, onSelect }) => { > = ({ children, onSelect }) => {
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
const { t: i18n } = useTranslation("WaitRoom"); const { t: i18n } = useTranslation("Popover");
// 需要在mora的service之中,emit一个事件,让这个组件监听到,然后打开popover // 需要在mora的service之中,emit一个事件,让这个组件监听到,然后打开popover
useEffect(() => { useEffect(() => {
eventbus.once(Task.Tp, () => { eventbus.once(Task.Tp, () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment