diff --git a/striker-ui/components/organisms/Header.tsx b/striker-ui/components/Header.tsx similarity index 95% rename from striker-ui/components/organisms/Header.tsx rename to striker-ui/components/Header.tsx index 80a5c093..44dc5181 100644 --- a/striker-ui/components/organisms/Header.tsx +++ b/striker-ui/components/Header.tsx @@ -2,7 +2,7 @@ import AppBar from '@material-ui/core/AppBar'; import { makeStyles, createStyles } from '@material-ui/core/styles'; import { Grid } from '@material-ui/core'; import Image from 'next/image'; -import { ICONS, ICON_SIZE } from '../../lib/consts/ICONS'; +import { ICONS, ICON_SIZE } from '../lib/consts/ICONS'; const useStyles = makeStyles((theme) => createStyles({ diff --git a/striker-ui/components/atoms/Button.tsx b/striker-ui/components/atoms/Button.tsx deleted file mode 100644 index ff107d54..00000000 --- a/striker-ui/components/atoms/Button.tsx +++ /dev/null @@ -1,106 +0,0 @@ -import { FunctionComponent } from 'react'; -import Image from 'next/image'; -import Link from 'next/link'; -import styled from 'styled-components'; - -import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME'; - -import { ButtonImageProps } from '../../types/ButtonImageProps'; -import { ButtonProps } from '../../types/ButtonProps'; -import Label from './Label'; - -const DEFAULT_BUTTON_IMAGE_SIZE = 30; - -const StyledButton = styled.button` - display: flex; - - flex-direction: row; - flex-wrap: nowrap; -`; - -const StyledSeparator = styled.div` - margin-right: 0.5em; -`; - -StyledButton.defaultProps = { - theme: DEFAULT_THEME, -}; - -const getButtonImageElement: ( - imageProps?: ButtonImageProps, -) => JSX.Element | undefined = (imageProps) => { - let imageElement: JSX.Element | undefined; - - if (imageProps) { - const { - src, - width = DEFAULT_BUTTON_IMAGE_SIZE, - height = DEFAULT_BUTTON_IMAGE_SIZE, - } = imageProps; - - imageElement = ; - } - - return imageElement; -}; - -const getButtonLabelElement: ( - labelProps?: LabelProps, -) => JSX.Element | undefined = (labelProps) => { - let labelElement: JSX.Element | undefined; - - if (labelProps) { - const { text } = labelProps; - - labelElement =