From a89aba671fd70f5ac100a9c893c39dc5e3792b8b Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Fri, 23 Feb 2018 15:06:20 +0100 Subject: Add a menu --- src/client/react/components/container/Menu.js | 39 +++++++++++++++++++++++++ src/client/react/components/container/Search.js | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 src/client/react/components/container/Menu.js (limited to 'src/client/react') diff --git a/src/client/react/components/container/Menu.js b/src/client/react/components/container/Menu.js new file mode 100644 index 0000000..2e55fa1 --- /dev/null +++ b/src/client/react/components/container/Menu.js @@ -0,0 +1,39 @@ +/** + * Copyright (C) 2018 Noah Loomans + * + * This file is part of rooster.hetmml.nl. + * + * rooster.hetmml.nl is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * rooster.hetmml.nl is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with rooster.hetmml.nl. If not, see . + * + */ + +import React from 'react'; +import { Button, ButtonIcon } from 'rmwc/Button'; +import { SimpleMenu, MenuItem } from 'rmwc/Menu'; + +class Menu extends React.Component { + render() { + return ( + } + > + Cookies + Pizza + Icecream + + ); + } +} + +export default Menu; diff --git a/src/client/react/components/container/Search.js b/src/client/react/components/container/Search.js index 30ccad8..9c67667 100644 --- a/src/client/react/components/container/Search.js +++ b/src/client/react/components/container/Search.js @@ -29,6 +29,7 @@ import SearchIcon from 'react-icons/lib/md/search'; import { userFromMatch } from '../../lib/url'; import users from '../../users'; +import Menu from './Menu'; import Results from './Results'; import IconFromUserType from '../presentational/IconFromUserType'; @@ -160,6 +161,7 @@ class Search extends React.Component { onBlur={this.onBlur} autoComplete="off" /> + -- cgit v1.1