Fix: removed darkmode function
Fix: slightly darken diff color for visibility
This commit is contained in:
parent
033b447eeb
commit
c75ff3128c
|
@ -88,7 +88,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background-color-removed: #fff8b7;
|
--background-color-removed: #f1ebb3;
|
||||||
--background-color-added: #ffd7b6;
|
--background-color-added: #ffd7b6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import "./VerseValidator.css";
|
import "./VerseValidator.css";
|
||||||
import { StringDiff } from "react-string-diff";
|
import { StringDiff } from "react-string-diff";
|
||||||
import { useDarkMode, containsKorean, jamoSubstringMatch } from './utils';
|
import { containsKorean, jamoSubstringMatch } from './utils';
|
||||||
|
|
||||||
const STATE = {
|
const STATE = {
|
||||||
INCORRECT: 0,
|
INCORRECT: 0,
|
||||||
|
@ -211,20 +211,6 @@ const VerseValidator = ({ element: { pack, title, chapterTitle, reference, verse
|
||||||
default: {}
|
default: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
// if (isDarkMode) {
|
|
||||||
// diffStyle = {
|
|
||||||
// added: {
|
|
||||||
// backgroundColor: '#760f46'
|
|
||||||
// },
|
|
||||||
// removed: {
|
|
||||||
// backgroundColor: '#be7a0d'
|
|
||||||
// },
|
|
||||||
// default: {}
|
|
||||||
// };
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (<StringDiff
|
return (<StringDiff
|
||||||
oldValue={string1}
|
oldValue={string1}
|
||||||
|
|
Loading…
Reference in New Issue