Fix: removed darkmode function

Fix: slightly darken diff color for visibility
This commit is contained in:
Richard Wong 2024-08-31 00:14:44 +09:00
parent 033b447eeb
commit c75ff3128c
Signed by: richard
GPG Key ID: 72948FBB6D359A6D
2 changed files with 2 additions and 16 deletions

View File

@ -88,7 +88,7 @@
}
:root {
--background-color-removed: #fff8b7;
--background-color-removed: #f1ebb3;
--background-color-added: #ffd7b6;
}
}

View File

@ -1,7 +1,7 @@
import { useState } from "react";
import "./VerseValidator.css";
import { StringDiff } from "react-string-diff";
import { useDarkMode, containsKorean, jamoSubstringMatch } from './utils';
import { containsKorean, jamoSubstringMatch } from './utils';
const STATE = {
INCORRECT: 0,
@ -211,20 +211,6 @@ const VerseValidator = ({ element: { pack, title, chapterTitle, reference, verse
default: {}
};
// if (isDarkMode) {
// diffStyle = {
// added: {
// backgroundColor: '#760f46'
// },
// removed: {
// backgroundColor: '#be7a0d'
// },
// default: {}
// };
// }
return (<StringDiff
oldValue={string1}