Skip to content

Commit

Permalink
feat: empty state graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagofeijor committed May 24, 2024
1 parent 0ce8a23 commit a647042
Show file tree
Hide file tree
Showing 4 changed files with 834 additions and 6 deletions.
34 changes: 34 additions & 0 deletions src/components/LayoutCenter/LayoutCenter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import * as React from "react";
import { makeStyles } from "@fluentui/react-components";
import { TabBar } from "./TabBar/TabBar";
import { EmptyState } from "./EmptyState/EmptyState";
import { isMobileAgent } from "./constants";

const isMobile = isMobileAgent.test(navigator.userAgent);

const useStyles = makeStyles({
root: {
display: 'flex',
height: '100vh',
'flex-direction': isMobile ? 'column-reverse' : 'column',
},
page: {
height: 'calc(100vh - 60px)',
'box-sizing': 'content-box',
}
});

export const LayoutCenter = () => {
const styles = useStyles();
const searchParams = new URLSearchParams(document?.location?.search);
return (
<div className={styles.root}>
<TabBar initialValue={searchParams.get("p")} />
<div className={styles.page}>
<EmptyState />
</div>
</div>
);
}

export default LayoutCenter
Loading

0 comments on commit a647042

Please sign in to comment.