feat: adjust profile item menu

This commit is contained in:
GyDi 2022-02-10 01:14:57 +08:00
parent 3ed6938d4a
commit f2c04621a5
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084

View File

@ -238,9 +238,15 @@ const ProfileItem: React.FC<Props> = (props) => {
anchorReference="anchorPosition"
>
<MenuItem onClick={onForceSelect}>Select</MenuItem>
{isUrlMode ? (
<>
<MenuItem onClick={onView}>View</MenuItem>
<MenuItem onClick={onUpdateWrapper(false)}>Update</MenuItem>
<MenuItem onClick={onUpdateWrapper(true)}>Update(Proxy)</MenuItem>
</>
) : (
<MenuItem onClick={onView}>Edit</MenuItem>
)}
<MenuItem onClick={onDelete}>Delete</MenuItem>
</Menu>
</>