new windo theme update

This commit is contained in:
2025-09-05 11:35:24 +05:30
parent 6f0adcab0f
commit 18562307a2
2 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);