Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

Refactor: Simplify NotesWindow rendering in App component

itzadetunji4ed6b352a2de
diff --git a/src/App.tsx b/src/App.tsx
index a59c2aeee..8c766611e 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -106,25 +106,17 @@ export default function App() {
default:
return (
<div>
- {/* <div className="w-full h-full bg-background text-foreground">
- <h1>Openscreen</h1>
- </div> */}
+ <div className="w-full h-full bg-background text-foreground">
+ <h1>Openscreen</h1>
+ </div>
</div>
);
}
})();
- if (showNotes) {
- return (
- <TooltipProvider>
- <NotesWindow />
- <Toaster theme="dark" />
- </TooltipProvider>
- );
- }
-
return (
<TooltipProvider>
+ {showNotes && <NotesWindow />}
{content}
<Toaster theme="dark" />
</TooltipProvider>