fix(web):switch space

This commit is contained in:
zhaoying
2026-04-22 18:50:36 +08:00
parent ec6b08cde2
commit f650406869

View File

@@ -1,15 +1,14 @@
/* /*
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-25 11:45:07 * @Date: 2026-04-22 18:50:14
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-27 09:59:41 * @Last Modified time: 2026-04-22 18:50:14
*/ */
/** /**
* SwitchSpaceModal Component * SwitchSpaceModal Component
* *
* A two-step modal for changing user email address with verification code. * A modal for switching the current workspace.
* Step 1: Enter new email and send verification code * Displays a dropdown to select a workspace and reloads the page upon confirmation.
* Step 2: Confirm the email change
*/ */
import { forwardRef, useImperativeHandle, useState } from 'react'; import { forwardRef, useImperativeHandle, useState } from 'react';
@@ -77,7 +76,6 @@ const SwitchSpaceModal = forwardRef<SwitchSpaceModalRef>((_props, ref) => {
/** Expose methods to parent component */ /** Expose methods to parent component */
useImperativeHandle(ref, () => ({ useImperativeHandle(ref, () => ({
handleOpen, handleOpen,
handleClose
})); }));
return ( return (