Skip to content

Commit 179b34e

Browse files
committed
refactor: extract main layout to component
1 parent eb4173c commit 179b34e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/App.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ function App() {
211211
return child.pid;
212212
}
213213

214-
return (
215-
<main className="flex flex-col items-center justify-center min-h-screen gap-5">
214+
const Main = () => (
215+
<main className="flex flex-col flex-grow items-center justify-center gap-5">
216216
<h1 className="text-3xl font-extrabold">Zero Knowledge Network</h1>
217217

218218
<img
@@ -273,6 +273,12 @@ function App() {
273273
)}
274274
</main>
275275
);
276+
277+
return (
278+
<div className="flex flex-col min-h-screen">
279+
<Main />
280+
</div>
281+
);
276282
}
277283

278284
export default App;

0 commit comments

Comments
 (0)