mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
refactor: removeSpecialCharacters -> keepSpecialCharacters
This commit is contained in:
@@ -10,12 +10,12 @@ export default function ToolTextResult({
|
||||
title = 'Result',
|
||||
value,
|
||||
extension = 'txt',
|
||||
removeSpecialCharacters = true
|
||||
keepSpecialCharacters
|
||||
}: {
|
||||
title?: string;
|
||||
value: string;
|
||||
extension?: string;
|
||||
removeSpecialCharacters?: boolean;
|
||||
keepSpecialCharacters?: boolean;
|
||||
}) {
|
||||
const { showSnackBar } = useContext(CustomSnackBarContext);
|
||||
const handleCopy = () => {
|
||||
@@ -47,9 +47,7 @@ export default function ToolTextResult({
|
||||
<Box>
|
||||
<InputHeader title={title} />
|
||||
<TextField
|
||||
value={
|
||||
removeSpecialCharacters ? replaceSpecialCharacters(value) : value
|
||||
}
|
||||
value={keepSpecialCharacters ? value : replaceSpecialCharacters(value)}
|
||||
fullWidth
|
||||
multiline
|
||||
sx={{
|
||||
|
Reference in New Issue
Block a user