Explorar el Código

style: add BlankLayout default style

chenshuai2144 hace 6 años
padre
commit
5e8f54cc6d
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      src/layouts/BlankLayout.tsx

+ 10 - 1
src/layouts/BlankLayout.tsx

@@ -1,5 +1,14 @@
 import React from 'react';
 
-const Layout: React.FC = ({ children }) => <div>{children}</div>;
+const Layout: React.FC = ({ children }) => (
+  <div
+    style={{
+      width: '100vh',
+      height: '100vh',
+    }}
+  >
+    {children}
+  </div>
+);
 
 export default Layout;