mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
editor: hide replace button in readonly mode
This commit is contained in:
committed by
Abdullah Atta
parent
50ff39845a
commit
0a88502e59
@@ -203,15 +203,17 @@ export function SearchReplacePopup(props: SearchReplacePopupProps) {
|
||||
</Flex>
|
||||
<Flex sx={{ flexDirection: "column" }}>
|
||||
<Flex sx={{ alignItems: "center", height: "33.2px" }}>
|
||||
<ToolButton
|
||||
toggled={isReplacing}
|
||||
title="Toggle replace"
|
||||
id="toggleReplace"
|
||||
icon="replace"
|
||||
onClick={() => setIsReplacing((s) => !s)}
|
||||
sx={{ mr: 0 }}
|
||||
iconSize={"big"}
|
||||
/>
|
||||
{editor.isEditable && (
|
||||
<ToolButton
|
||||
toggled={isReplacing}
|
||||
title="Toggle replace"
|
||||
id="toggleReplace"
|
||||
icon="replace"
|
||||
onClick={() => setIsReplacing((s) => !s)}
|
||||
sx={{ mr: 0 }}
|
||||
iconSize={"big"}
|
||||
/>
|
||||
)}
|
||||
<ToolButton
|
||||
toggled={false}
|
||||
title="Previous match"
|
||||
|
||||
Reference in New Issue
Block a user