Skip to content

Commit

Permalink
Merge pull request #49 from ceph/mrt
Browse files Browse the repository at this point in the history
Replace @mui/x-data-grid with material-react-table
  • Loading branch information
zmc authored Feb 5, 2024
2 parents 8bd6699 + ce7a60e commit 21b8c46
Show file tree
Hide file tree
Showing 25 changed files with 2,081 additions and 1,200 deletions.
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Pulpito" />
<link rel="apple-touch-icon" href="/favicon.ico" />
<link rel="manifest" href="/manifest.json" />
Expand All @@ -27,10 +26,12 @@
<div id="root"></div>
<script>
try {
let colorScheme = "light";
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
colorScheme = "dark";
};
let colorScheme = localStorage.getItem("theme");
const systemDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (!colorScheme) {
colorScheme = systemDarkMode ? "dark" : "light";
}
if (!!colorScheme) localStorage.setItem("theme", colorScheme);
document.getElementsByTagName("body")[0].setAttribute("color-scheme", colorScheme);
} catch (e) {
console.error(e);
Expand Down
Loading

0 comments on commit 21b8c46

Please sign in to comment.