Browse Source

merge

pull/2/head^2
Djordje Mitrovic 3 years ago
parent
commit
a13eb545c4
25 changed files with 167 additions and 55 deletions
  1. 3
    3
      src/components/Buttons/IconButton/IconButton.js
  2. 1
    1
      src/components/Buttons/IconButton/IconButton.styled.js
  3. 3
    3
      src/components/Buttons/LoginButton/LoginButton.js
  4. 1
    1
      src/components/Buttons/LoginButton/LoginButton.styled.js
  5. 3
    3
      src/components/Buttons/PrimaryButton/PrimaryButton.js
  6. 6
    5
      src/components/Buttons/PrimaryButton/PrimaryButton.styled.js
  7. 3
    3
      src/components/Buttons/PrimaryButtonWithIcon/PrimaryButtonWithIcon.js
  8. 1
    1
      src/components/Buttons/PrimaryButtonWithIcon/PrimaryButtonWithIcon.styled.js
  9. 5
    6
      src/components/CheckBox/CheckBox.js
  10. 1
    1
      src/components/CheckBox/CheckBox.styled.js
  11. 3
    3
      src/components/CheckBox/Label.js
  12. 1
    1
      src/components/CheckBox/Label.styled.js
  13. 3
    3
      src/components/Dropdown/DropdownItem/DropdownItem.js
  14. 1
    1
      src/components/Dropdown/DropdownItem/DropdownItem.styled.js
  15. 3
    3
      src/components/Dropdown/DropdownList/DropdownList.js
  16. 4
    4
      src/components/Dropdown/DropdownList/DropdownList.styled.js
  17. 3
    3
      src/components/Icon/Icon.js
  18. 1
    1
      src/components/Icon/Icon.styled.js
  19. 3
    3
      src/components/TextFields/TextField/TextField.js
  20. 1
    1
      src/components/TextFields/TextField/TextField.styled.js
  21. 3
    3
      src/components/TextFields/TextFieldWithIcon/TextFieldWithIcon.js
  22. 1
    1
      src/components/TextFields/TextFieldWithIcon/TextFieldWithIcon.styled.js
  23. 89
    1
      src/pages/LoginPage/LoginPageMUI.js
  24. 14
    0
      src/themes/index.js
  25. 10
    0
      src/themes/primaryTheme/primaryThemeColors.js

+ 3
- 3
src/components/Buttons/IconButton/IconButton.js View File

import React from 'react' import React from 'react'
import { ComponentContainer, IconButtonStyled } from "./IconButton.styled"
import { IconButtonContainer, IconButtonStyled } from "./IconButton.styled"
import PropTypes from "prop-types"; import PropTypes from "prop-types";


export const IconButton = (props) => { export const IconButton = (props) => {
return <ComponentContainer style={props.containerStyle} className={props.className}>
return <IconButtonContainer style={props.containerStyle} className={props.className}>
<IconButtonStyled onClick={props.onClick} sx={props.style}> <IconButtonStyled onClick={props.onClick} sx={props.style}>
{props.children} {props.children}
</IconButtonStyled> </IconButtonStyled>
</ComponentContainer>
</IconButtonContainer>
} }


IconButton.propTypes = { IconButton.propTypes = {

+ 1
- 1
src/components/Buttons/IconButton/IconButton.styled.js View File

import { Box, IconButton } from "@mui/material"; import { Box, IconButton } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";


export const ComponentContainer = styled(Box)`
export const IconButtonContainer = styled(Box)`
` `


export const IconButtonStyled = styled(IconButton)` export const IconButtonStyled = styled(IconButton)`

+ 3
- 3
src/components/Buttons/LoginButton/LoginButton.js View File

import React from "react"; import React from "react";
import { ComponentContainer, LoginButtonStyled } from "./LoginButton.styled";
import { LoginButtonContainer, LoginButtonStyled } from "./LoginButton.styled";
import PropTypes from "prop-types"; import PropTypes from "prop-types";




//Currently not in use //Currently not in use
export const LoginButton = (props) => { export const LoginButton = (props) => {
return ( return (
<ComponentContainer style={props.containerStyle}>
<LoginButtonContainer style={props.containerStyle}>
<LoginButtonStyled {...props} sx={props.style} variant="contained"> <LoginButtonStyled {...props} sx={props.style} variant="contained">
Dugme Dugme
</LoginButtonStyled> </LoginButtonStyled>
</ComponentContainer>
</LoginButtonContainer>
); );
}; };



+ 1
- 1
src/components/Buttons/LoginButton/LoginButton.styled.js View File

import styled from "styled-components"; import styled from "styled-components";




export const ComponentContainer = styled(Box)`
export const LoginButtonContainer = styled(Box)`
` `


export const LoginButtonStyled = styled(Button)` export const LoginButtonStyled = styled(Button)`

+ 3
- 3
src/components/Buttons/PrimaryButton/PrimaryButton.js View File

import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { import {
ComponentContainer,
PrimaryButtonContainer,
PrimaryButtonStyled, PrimaryButtonStyled,
} from "./PrimaryButton.styled"; } from "./PrimaryButton.styled";


export const PrimaryButton = (props) => { export const PrimaryButton = (props) => {
return ( return (
<ComponentContainer style={props.containerStyle} className={props.className}>
<PrimaryButtonContainer style={props.containerStyle} className={props.className}>
<PrimaryButtonStyled {...props} sx={props.style}> <PrimaryButtonStyled {...props} sx={props.style}>
{props.children} {props.children}
</PrimaryButtonStyled> </PrimaryButtonStyled>
</ComponentContainer>
</PrimaryButtonContainer>
); );
}; };



+ 6
- 5
src/components/Buttons/PrimaryButton/PrimaryButton.styled.js View File

import { Box, Button } from "@mui/material"; import { Box, Button } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import { PRIMARY_PURPLE_DISABLED, PRIMARY_TEXT_DISABLED_COLOR } from "../../../constants/stylesConstants";
import selectedTheme from "../../../themes";


export const ComponentContainer = styled(Box)``;
export const PrimaryButtonContainer = styled(Box)``;


export const PrimaryButtonStyled = styled(Button)` export const PrimaryButtonStyled = styled(Button)`
background-color: ${(props) => props.disabled ? PRIMARY_PURPLE_DISABLED : (
background-color: ${(props) => props.disabled ? selectedTheme.primaryPurpleDisabled: (
props.variant === "contained" ? props.buttoncolor : "transparent")} !important; props.variant === "contained" ? props.buttoncolor : "transparent")} !important;
border-color: ${(props) => border-color: ${(props) =>
props.variant === "outlined" ? props.buttoncolor : "transparent"}; props.variant === "outlined" ? props.buttoncolor : "transparent"};
color: ${(props) => props.disabled ? PRIMARY_TEXT_DISABLED_COLOR : (
color: ${(props) => props.disabled ? selectedTheme.primaryTextDisabled : (
props.textcolor)} !important; props.textcolor)} !important;
box-shadow: 0 0 0 0; box-shadow: 0 0 0 0;
font-size: 12px; font-size: 12px;
box-shadow: 0 0 0 0; box-shadow: 0 0 0 0;
} }
&:disabled { &:disabled {
background-color: ${PRIMARY_PURPLE_DISABLED};
background-color: ${selectedTheme.primaryPurpleDisabled};
color: ${(props) => props.textcolor};
} }
`; `;

+ 3
- 3
src/components/Buttons/PrimaryButtonWithIcon/PrimaryButtonWithIcon.js View File

import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { import {
ComponentContainer,
PrimaryButtonWithIconContainer,
IconStyled, IconStyled,
PrimaryButtonWithIconStyled, PrimaryButtonWithIconStyled,
} from "./PrimaryButtonWithIcon.styled"; } from "./PrimaryButtonWithIcon.styled";


const PrimaryButtonWithIcon = (props) => { const PrimaryButtonWithIcon = (props) => {
return ( return (
<ComponentContainer
<PrimaryButtonWithIconContainer
style={props.containerStyle} style={props.containerStyle}
className={props.className} className={props.className}
> >
<IconStyled style={props.iconStyle}>{props.icon}</IconStyled> <IconStyled style={props.iconStyle}>{props.icon}</IconStyled>
{props.children} {props.children}
</PrimaryButtonWithIconStyled> </PrimaryButtonWithIconStyled>
</ComponentContainer>
</PrimaryButtonWithIconContainer>
); );
}; };



+ 1
- 1
src/components/Buttons/PrimaryButtonWithIcon/PrimaryButtonWithIcon.styled.js View File

import { Icon } from "../../Icon/Icon"; import { Icon } from "../../Icon/Icon";
import { PrimaryButton } from "../PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../PrimaryButton/PrimaryButton";


export const ComponentContainer = styled(Box)``;
export const PrimaryButtonWithIconContainer = styled(Box)``;


export const PrimaryButtonWithIconStyled = styled(PrimaryButton)` export const PrimaryButtonWithIconStyled = styled(PrimaryButton)`
position: relative; position: relative;

+ 5
- 6
src/components/CheckBox/CheckBox.js View File

import React, { useState } from "react"; import React, { useState } from "react";
import { import {
CheckBoxStyled, CheckBoxStyled,
ComponentContainer,
CheckBoxContainer,
FormControlLabelStyled, FormControlLabelStyled,
} from "./CheckBox.styled"; } from "./CheckBox.styled";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { PRIMARY_PURPLE_COLOR } from "../../constants/stylesConstants";
// import { FormControlLabel } from "@mui/material";
import { Label } from "./Label"; import { Label } from "./Label";
import selectedTheme from "../../themes";


export const CheckBox = (props) => { export const CheckBox = (props) => {
const [checked, setChecked] = useState(false); const [checked, setChecked] = useState(false);
}; };


return ( return (
<ComponentContainer
<CheckBoxContainer
style={props.containerStyle} style={props.containerStyle}
fullWidth={props.fullWidth} fullWidth={props.fullWidth}
className={props.className} className={props.className}
/> />
} }
/> />
</ComponentContainer>
</CheckBoxContainer>
); );
}; };


}; };


CheckBox.defaultProps = { CheckBox.defaultProps = {
color: PRIMARY_PURPLE_COLOR,
color: selectedTheme.primaryPurple,
}; };

+ 1
- 1
src/components/CheckBox/CheckBox.styled.js View File

import { Box, Checkbox, FormControlLabel } from "@mui/material"; import { Box, Checkbox, FormControlLabel } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";


export const ComponentContainer = styled(Box)`
export const CheckBoxContainer = styled(Box)`
${props => props.fullWidth && (` ${props => props.fullWidth && (`
width: 100%; width: 100%;
display: flex; display: flex;

+ 3
- 3
src/components/CheckBox/Label.js View File

import React from "react"; import React from "react";
import { ComponentContainer, LeftLabel, RightLabel } from "./Label.styled";
import { LabelContainer, LeftLabel, RightLabel } from "./Label.styled";
import PropTypes from "prop-types"; import PropTypes from "prop-types";


export const Label = (props) => { export const Label = (props) => {
return ( return (
<ComponentContainer onClick={props.onClick} maxWidth={props.maxWidth}>
<LabelContainer onClick={props.onClick} maxWidth={props.maxWidth}>
<LeftLabel>{props.leftText}</LeftLabel> <LeftLabel>{props.leftText}</LeftLabel>
{props.rightText && <RightLabel>{props.rightText}</RightLabel>} {props.rightText && <RightLabel>{props.rightText}</RightLabel>}
</ComponentContainer>
</LabelContainer>
); );
}; };



+ 1
- 1
src/components/CheckBox/Label.styled.js View File

import { Box, FormLabel } from "@mui/material"; import { Box, FormLabel } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";


export const ComponentContainer = styled(Box)`
export const LabelContainer = styled(Box)`
display: flex; display: flex;
flex: 1; flex: 1;
justify-content: space-between; justify-content: space-between;

+ 3
- 3
src/components/Dropdown/DropdownItem/DropdownItem.js View File

import React from 'react' import React from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { ComponentContainer, DropdownItemStyled } from './DropdownItem.styled'
import { DropdownItemContainer, DropdownItemStyled } from './DropdownItem.styled'


const DropdownItem = (props) => { const DropdownItem = (props) => {
return ( return (
<ComponentContainer onClick={props.onClick}>
<DropdownItemContainer onClick={props.onClick}>
<DropdownItemStyled> <DropdownItemStyled>
{props.children} {props.children}
</DropdownItemStyled> </DropdownItemStyled>
</ComponentContainer>
</DropdownItemContainer>
) )
} }



+ 1
- 1
src/components/Dropdown/DropdownItem/DropdownItem.styled.js View File

import { Box } from "@mui/material"; import { Box } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";


export const ComponentContainer = styled(Box)`
export const DropdownItemContainer = styled(Box)`
` `


export const DropdownItemStyled = styled(Box)` export const DropdownItemStyled = styled(Box)`

+ 3
- 3
src/components/Dropdown/DropdownList/DropdownList.js View File

import React, { useState } from "react"; import React, { useState } from "react";
import { import {
ComponentContainer,
DropdownListContainer,
DropdownHeader, DropdownHeader,
DropdownIcon, DropdownIcon,
DropdownTitle, DropdownTitle,
const DropdownList = (props) => { const DropdownList = (props) => {
const [listShown, setListShown] = useState(props.defaultOpen); const [listShown, setListShown] = useState(props.defaultOpen);
return ( return (
<ComponentContainer fullWidth={props.fullWidth}>
<DropdownListContainer fullWidth={props.fullWidth}>
<DropdownHeader> <DropdownHeader>
{props.dropdownIcon && ( {props.dropdownIcon && (
<DropdownIcon>{props.dropdownIcon}</DropdownIcon> <DropdownIcon>{props.dropdownIcon}</DropdownIcon>
</DropdownHeader> </DropdownHeader>


<ListContainer shouldShow={listShown}>{props.children}</ListContainer> <ListContainer shouldShow={listShown}>{props.children}</ListContainer>
</ComponentContainer>
</DropdownListContainer>
); );
}; };



+ 4
- 4
src/components/Dropdown/DropdownList/DropdownList.styled.js View File

import { Box, Typography } from "@mui/material"; import { Box, Typography } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";
import { PRIMARY_PURPLE_COLOR } from "../../../constants/stylesConstants";
import selectedTheme from "../../../themes";
import { Icon } from "../../Icon/Icon"; import { Icon } from "../../Icon/Icon";


export const ComponentContainer = styled(Box)`
export const DropdownListContainer = styled(Box)`


width: ${props => props.fullWidth ? '100%' : (props.width ? props.width : '250px')}; width: ${props => props.fullWidth ? '100%' : (props.width ? props.width : '250px')};
padding: 8px; padding: 8px;


export const ToggleIconOpened = styled(Icon)` export const ToggleIconOpened = styled(Icon)`
cursor: pointer; cursor: pointer;
color: ${PRIMARY_PURPLE_COLOR};
color: ${selectedTheme.primaryPurple};
` `


export const ToggleIconClosed = styled(Icon)` export const ToggleIconClosed = styled(Icon)`
cursor: pointer; cursor: pointer;
color: ${PRIMARY_PURPLE_COLOR};
color: ${selectedTheme.primaryPurple};
` `


export const DropdownIcon = styled(Icon)` export const DropdownIcon = styled(Icon)`

+ 3
- 3
src/components/Icon/Icon.js View File

import React from 'react'; import React from 'react';
import { ComponentContainer, IconStyled } from './Icon.styled';
import { IconContainer, IconStyled } from './Icon.styled';
import PropTypes from "prop-types"; import PropTypes from "prop-types";




export const Icon = (props) => { export const Icon = (props) => {
return ( return (
<ComponentContainer style={props.containerStyle} className={props.className} onClick={props.onClick}>
<IconContainer style={props.containerStyle} className={props.className} onClick={props.onClick}>
<IconStyled sx={props.style} color={props.color} size={props.size} fontSize={props.iconsize}> <IconStyled sx={props.style} color={props.color} size={props.size} fontSize={props.iconsize}>
{props.children} {props.children}
</IconStyled> </IconStyled>
</ComponentContainer>
</IconContainer>
) )
} }



+ 1
- 1
src/components/Icon/Icon.styled.js View File

import { Box, Icon } from "@mui/material"; import { Box, Icon } from "@mui/material";
import styled from "styled-components"; import styled from "styled-components";


export const ComponentContainer = styled(Box)`
export const IconContainer = styled(Box)`
` `


export const IconStyled = styled(Icon)` export const IconStyled = styled(Icon)`

+ 3
- 3
src/components/TextFields/TextField/TextField.js View File

import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { ComponentContainer, TextFieldStyled } from "./TextField.styled";
import { TextFieldContainer, TextFieldStyled } from "./TextField.styled";
import PropTypes from "prop-types"; import PropTypes from "prop-types";


export const TextField = (props) => { export const TextField = (props) => {
}, [props.value]); }, [props.value]);


return ( return (
<ComponentContainer style={props.containerStyle} className={props.className}>
<TextFieldContainer style={props.containerStyle} className={props.className}>
<TextFieldStyled <TextFieldStyled
placeholder={props.placeholder} placeholder={props.placeholder}
width={props.width} width={props.width}
> >
{props.children} {props.children}
</TextFieldStyled> </TextFieldStyled>
</ComponentContainer>
</TextFieldContainer>
); );
}; };



+ 1
- 1
src/components/TextFields/TextField/TextField.styled.js View File

import styled from "styled-components"; import styled from "styled-components";
import { PRIMARY_BACKGROUND_COLOR } from "../../../constants/stylesConstants"; import { PRIMARY_BACKGROUND_COLOR } from "../../../constants/stylesConstants";


export const ComponentContainer = styled(Box)`
export const TextFieldContainer = styled(Box)`
width: 100%; width: 100%;
height: 48px; height: 48px;
box-sizing: border-box; box-sizing: border-box;

+ 3
- 3
src/components/TextFields/TextFieldWithIcon/TextFieldWithIcon.js View File

import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { ComponentContainer, IconStyled, TextFieldStyled } from './TextFieldWithIcon.styled';
import { TextFieldWithIconContainer, IconStyled, TextFieldStyled } from './TextFieldWithIcon.styled';
import { Visibility } from '@mui/icons-material'; import { Visibility } from '@mui/icons-material';


const TextFieldWithIcon = (props) => { const TextFieldWithIcon = (props) => {
return ( return (
<ComponentContainer>
<TextFieldWithIconContainer>
<TextFieldStyled {...props.textFieldProps}> <TextFieldStyled {...props.textFieldProps}>
<IconStyled color="green"> <IconStyled color="green">
<Visibility color="green"/> <Visibility color="green"/>
</IconStyled> </IconStyled>
{props.children} {props.children}
</TextFieldStyled> </TextFieldStyled>
</ComponentContainer>
</TextFieldWithIconContainer>
) )
} }



+ 1
- 1
src/components/TextFields/TextFieldWithIcon/TextFieldWithIcon.styled.js View File

import { Icon } from "../../Icon/Icon"; import { Icon } from "../../Icon/Icon";
import { TextField } from "../TextField/TextField"; import { TextField } from "../TextField/TextField";


export const ComponentContainer = styled(Box)`
export const TextFieldWithIconContainer = styled(Box)`
` `


export const TextFieldStyled = styled(TextField)` export const TextFieldStyled = styled(TextField)`

+ 89
- 1
src/pages/LoginPage/LoginPageMUI.js View File

import { LOGIN_USER_LOADING } from "../../store/actions/login/loginActionConstants"; import { LOGIN_USER_LOADING } from "../../store/actions/login/loginActionConstants";
import { TextField } from "../../components/TextFields/TextField/TextField"; import { TextField } from "../../components/TextFields/TextField/TextField";
import { PrimaryButton } from "../../components/Buttons/PrimaryButton/PrimaryButton"; import { PrimaryButton } from "../../components/Buttons/PrimaryButton/PrimaryButton";
import { PRIMARY_PURPLE_COLOR } from "../../constants/stylesConstants";
import { IconButton } from "../../components/Buttons/IconButton/IconButton"; import { IconButton } from "../../components/Buttons/IconButton/IconButton";
<<<<<<< HEAD
import Link from "../../components/Link/Link"; import Link from "../../components/Link/Link";
import { ReactComponent as Logo } from "../../assets/images/svg/logo-vertical.svg"; import { ReactComponent as Logo } from "../../assets/images/svg/logo-vertical.svg";
import { import {
RegisterAltText, RegisterAltText,
RegisterTextContainer, RegisterTextContainer,
} from "./Login.styled"; } from "./Login.styled";
=======
import { Icon } from "../../components/Icon/Icon";
import PrimaryButtonWithIcon from "../../components/Buttons/PrimaryButtonWithIcon/PrimaryButtonWithIcon";
import TextFieldWithIcon from "../../components/TextFields/TextFieldWithIcon/TextFieldWithIcon";
import DropdownList from "../../components/Dropdown/DropdownList/DropdownList";
import DropdownItem from "../../components/Dropdown/DropdownItem/DropdownItem";
import { CheckBox } from "../../components/CheckBox/CheckBox";
import selectedTheme from "../../themes";
>>>>>>> 0ab484f415ede89d54c28a177d12f746fce4da4c


const LoginPage = ({ history }) => { const LoginPage = ({ history }) => {
const dispatch = useDispatch(); const dispatch = useDispatch();
align="right" align="right"
style={{ marginTop: "18px", marginBottom: "18px" }} style={{ marginTop: "18px", marginBottom: "18px" }}
> >
<<<<<<< HEAD
{t("login.forgotYourPassword")} {t("login.forgotYourPassword")}
</Link> </Link>


component={NavLink} component={NavLink}
underline="hover" underline="hover"
align="center" align="center"
=======
<Backdrop position="absolute" isLoading={isLoading} />
<TextField
name="username"
placeholder={t("common.labelUsername")}
margin="normal"
value={formik.values.username}
onChange={formik.handleChange}
error={formik.touched.username && Boolean(formik.errors.username)}
helperText={formik.touched.username && formik.errors.username}
autoFocus
fullWidth
/>
<TextField
name="password"
placeholder={t("common.labelPassword")}
margin="normal"
type={showPassword ? "text" : "password"}
value={formik.values.password}
onChange={formik.handleChange}
error={formik.touched.password && Boolean(formik.errors.password)}
helperText={formik.touched.password && formik.errors.password}
fullWidth
InputProps={{
endAdornment: (
<IconButton
onClick={handleClickShowPassword}
onMouseDown={handleMouseDownPassword}
>
{showPassword ? <Visibility /> : <VisibilityOff />}
</IconButton>
),
}}
/>

<DropdownList
title="Naslov"
toggleIconOpened={<Visibility />}
toggleIconClosed={<VisibilityOff />}
dropdownIcon={<LocationOnOutlined />}
fullWidth
defaultOpen={false}
>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
<DropdownItem>
<CheckBox fullWidth leftText="Kategorija" rightText="124" />
</DropdownItem>
</DropdownList>

<PrimaryButtonWithIcon
icon={<Visibility />}
sx={{ mt: 3, mb: 2 }}
buttonProps={{
type: "submit",
variant: "contained",
height: "40px",
fullWidth: true,
buttoncolor: selectedTheme.primaryPurple,
textcolor: "white",
}}
>>>>>>> 0ab484f415ede89d54c28a177d12f746fce4da4c
> >
{t("login.signUp")} {t("login.signUp")}
</Link> </Link>

+ 14
- 0
src/themes/index.js View File

import { primaryThemeColors } from "./primaryTheme/primaryThemeColors";

let selectedThemeNumber = 0;

const getTheme = () => {
if (selectedThemeNumber === 0) {
return {...primaryThemeColors}
}
}

const selectedTheme = getTheme();

export default selectedTheme;


+ 10
- 0
src/themes/primaryTheme/primaryThemeColors.js View File

export const primaryThemeColors = {
primaryPurple: "#5A3984",
primaryYellow: "#f7b126",
primaryPurpleDisabled: "#4D4D4D",
primaryBackgroundColor: "#F1F1F1",
primaryTextDisabled: "#F1F1F1",
primaryText: "#4D4D4D",
primaryGrayText: "#818181",
primaryDarkGrayText: "#DCDCDC"
}

Loading…
Cancel
Save