chore: hidden open api field

This commit is contained in:
Steven 2023-03-15 08:24:28 +08:00
parent 59fb9227a3
commit 8a4e0ae434
2 changed files with 16 additions and 13 deletions

View File

@ -60,7 +60,7 @@ const Header: React.FC = () => {
to={`/${workspace.name}`} to={`/${workspace.name}`}
className="w-full px-3 leading-10 flex flex-row justify-between items-center text-left cursor-pointer rounded whitespace-nowrap hover:bg-gray-100" className="w-full px-3 leading-10 flex flex-row justify-between items-center text-left cursor-pointer rounded whitespace-nowrap hover:bg-gray-100"
> >
<span className="truncate">{workspace.name}</span> <span className="truncate">{workspace.title}</span>
{workspace.name === activedWorkspace?.name && <Icon.Check className="w-4 h-auto ml-1 shrink-0" />} {workspace.name === activedWorkspace?.name && <Icon.Check className="w-4 h-auto ml-1 shrink-0" />}
</Link> </Link>
); );

View File

@ -72,18 +72,21 @@ const UserDetail: React.FC = () => {
Change Change
</Button> </Button>
</div> </div>
<div className="leading-8 flex flex-row justify-start items-center"> {/* Do not display open api related field right now. */}
<span className="mr-3 text-gray-500 font-mono">OpenID:</span> {false && (
<Input type="text" className="w-48" value={user?.openId} readOnly /> <div className="leading-8 flex flex-row justify-start items-center">
<Tooltip title="Copy OpenID" variant="solid" placement="top"> <span className="mr-3 text-gray-500 font-mono">OpenID:</span>
<button className="-ml-6 z-1 bg-white text-gray-600 hover:text-black" onClick={handleCopyOpenIdBtnClick}> <Input type="text" className="w-48" value={user?.openId} readOnly />
<Icon.Clipboard className="w-4 h-auto" /> <Tooltip title="Copy OpenID" variant="solid" placement="top">
</button> <button className="-ml-6 z-1 bg-white text-gray-600 hover:text-black" onClick={handleCopyOpenIdBtnClick}>
</Tooltip> <Icon.Clipboard className="w-4 h-auto" />
<Button className="!ml-6" variant="soft" color="warning" onClick={handleResetOpenIdBtnClick}> </button>
Reset </Tooltip>
</Button> <Button className="!ml-6" variant="soft" color="warning" onClick={handleResetOpenIdBtnClick}>
</div> Reset
</Button>
</div>
)}
</div> </div>
{state.showChangePasswordDialog && ( {state.showChangePasswordDialog && (