mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
removed all router-modals
This commit is contained in:
parent
85d20e5009
commit
ffce400398
15 changed files with 99 additions and 143 deletions
|
@ -27,6 +27,7 @@ interface IProps {
|
|||
onLike: () => void;
|
||||
onStar: () => void;
|
||||
onLock: () => void;
|
||||
onEdit: () => void;
|
||||
}
|
||||
|
||||
const NodeTitle: VFC<IProps> = memo(
|
||||
|
@ -50,6 +51,7 @@ const NodeTitle: VFC<IProps> = memo(
|
|||
onStar,
|
||||
onLike,
|
||||
onLock,
|
||||
onEdit,
|
||||
}) => {
|
||||
return (
|
||||
<div className={classNames(styles.wrap)}>
|
||||
|
@ -91,11 +93,7 @@ const NodeTitle: VFC<IProps> = memo(
|
|||
<Icon icon={isLocked ? 'locked' : 'unlocked'} size={24} onClick={onLock} />
|
||||
</div>
|
||||
|
||||
{!!id && (
|
||||
<Link to={URLS.NODE_EDIT_URL(id)}>
|
||||
<Icon icon="edit" size={24} />
|
||||
</Link>
|
||||
)}
|
||||
{!!id && <Icon icon="edit" size={24} onClick={onEdit} />}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue