chore: update radio group

This commit is contained in:
Steven 2023-02-23 08:30:47 +08:00
parent e1f94b79e6
commit 138405559e
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
<div className="w-full flex flex-col justify-start items-start mb-3"> <div className="w-full flex flex-col justify-start items-start mb-3">
<span className="mb-2">Visibility</span> <span className="mb-2">Visibility</span>
<div className="w-full flex flex-row justify-start items-center text-base"> <div className="w-full flex flex-row justify-start items-center text-base">
<RadioGroup row value={state.shortcutCreate.visibility} onChange={handleVisibilityInputChange}> <RadioGroup orientation="horizontal" value={state.shortcutCreate.visibility} onChange={handleVisibilityInputChange}>
<Radio value="PRIVATE" label="Private" /> <Radio value="PRIVATE" label="Private" />
<Radio value="WORKSPACE" label="Workspace" /> <Radio value="WORKSPACE" label="Workspace" />
<Radio value="PUBLIC" label="Public" /> <Radio value="PUBLIC" label="Public" />

View File

@ -96,7 +96,7 @@ const UpsertWorkspaceUserDialog: React.FC<Props> = (props: Props) => {
<div className="w-full flex flex-col justify-start items-start mb-3"> <div className="w-full flex flex-col justify-start items-start mb-3">
<span className="mb-2">Role</span> <span className="mb-2">Role</span>
<div> <div>
<RadioGroup row value={state.workspaceUserUpsert.role} onChange={handleUserRoleInputChange}> <RadioGroup orientation="horizontal" value={state.workspaceUserUpsert.role} onChange={handleUserRoleInputChange}>
<Radio value="USER" label="User" /> <Radio value="USER" label="User" />
<Radio value="ADMIN" label="Admin" /> <Radio value="ADMIN" label="Admin" />
</RadioGroup> </RadioGroup>