summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/AppLogo.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-14 23:02:46 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-20 16:07:05 +0200
commit9dd75a9a40f7f2aebbc617980c99085f9dc688f8 (patch)
tree12b9fc2ef1b864c5773b78fe102f789508af7716 /opendc-web/opendc-web-ui/src/components/AppLogo.js
parentd2c0b9c038f5cbcb2b1528d4cb22b862309bd99a (diff)
refactor(web/ui): Move project selector into masthead
This change moves the project selector into the masthead since it affects the whole application. This follows the PatternFly guidelines.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/AppLogo.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/AppLogo.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/AppLogo.js b/opendc-web/opendc-web-ui/src/components/AppLogo.js
deleted file mode 100644
index 92663295..00000000
--- a/opendc-web/opendc-web-ui/src/components/AppLogo.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2021 AtLarge Research
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import PropTypes from 'prop-types'
-import Link from 'next/link'
-import { appLogo } from './AppLogo.module.scss'
-
-function AppLogo({ href, children, className, ...props }) {
- return (
- <>
- <Link href={href}>
- <a {...props} className={`${className ?? ''} ${appLogo}`}>
- {children}
- <span>OpenDC</span>
- </a>
- </Link>
- </>
- )
-}
-
-AppLogo.propTypes = {
- href: PropTypes.string.isRequired,
- children: PropTypes.node,
- className: PropTypes.string,
-}
-
-export default AppLogo