Commit 509db8bc authored by Chunchi Che's avatar Chunchi Che

fix i18n in WaitRoom

parent 897615a4
Pipeline #28128 passed with stages
in 11 minutes and 35 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