diff --git a/sandbox/grommet-app/src/App.jsx b/sandbox/grommet-app/src/App.jsx index e06aabb43..a481578bc 100644 --- a/sandbox/grommet-app/src/App.jsx +++ b/sandbox/grommet-app/src/App.jsx @@ -7,6 +7,7 @@ import Home from './pages/index'; import NextDashboard from './pages/next/index'; import { Login } from './Login'; import { GlobalHeader } from './components/GlobalHeader'; +import { FloatingActionButton } from './components'; export const BackgroundContext = createContext({}); @@ -39,6 +40,7 @@ const App = () => { cssGap: true, }, }} + style={{ display: 'relative' }} > {authenticated ? ( @@ -56,6 +58,9 @@ const App = () => { } /> + {window.location.pathname === '/next' ? ( + + ) : undefined} ) : ( diff --git a/sandbox/grommet-app/src/components/FloatingActionButton/FloatingActionButton.jsx b/sandbox/grommet-app/src/components/FloatingActionButton/FloatingActionButton.jsx new file mode 100644 index 000000000..b6a753e22 --- /dev/null +++ b/sandbox/grommet-app/src/components/FloatingActionButton/FloatingActionButton.jsx @@ -0,0 +1,18 @@ +import styled from 'styled-components'; +import { Box, Button } from 'grommet'; + +const PositionedBox = styled(Box)` + position: fixed; + bottom: 0px; + border-radius: 2em; + right: 0px; + z-index: 10; +`; + +export const FloatingActionButton = ({ ...rest }) => { + return ( + +