new windo theme update
This commit is contained in:
@@ -37,7 +37,7 @@ export const RenderInNewWindow: React.FC<NewWindowProps> = ({
|
|||||||
copyStyles = true,
|
copyStyles = true,
|
||||||
noopener = true,
|
noopener = true,
|
||||||
className,
|
className,
|
||||||
theme = "light",
|
theme = localStorage.getItem('theme') ?? 'light',
|
||||||
}) => {
|
}) => {
|
||||||
const [mounted, setMounted] = useState(false);
|
const [mounted, setMounted] = useState(false);
|
||||||
const childWindowRef = useRef<Window | null>(null);
|
const childWindowRef = useRef<Window | null>(null);
|
||||||
|
|||||||
@@ -162,7 +162,6 @@ const LogList: React.FC = () => {
|
|||||||
) : (
|
) : (
|
||||||
<RenderInNewWindow
|
<RenderInNewWindow
|
||||||
title="Log list"
|
title="Log list"
|
||||||
theme={localStorage.getItem("theme")}
|
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
setIsLogListVisible(false);
|
setIsLogListVisible(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user