fix error log in dark mode

pull/7/head
Gabi Purcaru 2022-12-21 10:11:13 +00:00
rodzic fd1325e7b6
commit 7ba66f5b89
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -304,7 +304,7 @@ function AccountDetails({ account, mainDomain }) {
function ErrorLog({ errors }: { errors: Array<string> }) {
const [expanded, setExpanded] = useState(false);
return (<>
{errors.length > 0 ? <div className="text-sm text-gray-600 lg:ml-12 border border-solid border-gray-200 rounded p-4">
{errors.length > 0 ? <div className="text-sm text-gray-600 dark:text-gray-200 lg:ml-12 border border-solid border-gray-200 dark:border-gray-700 rounded p-4">
Found <button className="font-bold" onClick={() => setExpanded(!expanded)}>{errors.length} warnings</button>{expanded ? ':' : '.'}
{expanded ? errors.map(err => <p key={err} className="text-xs">{err}</p>) : null}
</div> : null}