use default import for colors

This commit is contained in:
Aarni Halinen
2021-06-03 02:14:33 +03:00
parent 2740061c2e
commit d314552997
25 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import AccordionIcon from "./AccordionIcon";
const Container = styled.div`
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "../../theme/colors";
import colors from "../../theme/colors";
interface AccordionIconProps {
open: boolean;
+1 -1
View File
@@ -1,6 +1,6 @@
import React, { ComponentProps } from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { Link } from "@components/index";
import AddIcon from "@components/AddIcon";
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import HeaderLogo from "./HeaderLogo";
const Header = styled.header`
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
interface ButtonProps {
onClick: () => void;
+1 -1
View File
@@ -1,7 +1,7 @@
import React from "react";
import Image from "next/image";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { Link } from "@components/index";
import breakpoints from "@theme/breakpoints";
+1 -1
View File
@@ -1,7 +1,7 @@
import React from "react";
import Image from "next/image";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const Card = styled.article`
display: flex;
+1 -1
View File
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const Divider = styled.hr`
width: 98%;
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
interface DropDownBoxProps {
onMouseEnter: () => void;
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { Link } from "@components/index";
interface HeroAsideItemProps {
+1 -1
View File
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const Buttons = styled.div<{ row?: boolean }>`
min-width: 20%;
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const Note = styled.span`
color: white;
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const Loader = styled((props) => (
<div {...props}>
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { renderNavigationItems } from "./Navigation";
const Nav = styled.nav`
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { Link } from "@components/index";
interface PageLinkProps {
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { Link } from "@components/index";
const Section = styled.section<{ colors: string }>`
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const Container = styled.label`
display: block;
@@ -1,6 +1,6 @@
import React, { ButtonHTMLAttributes } from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
const RemoveButton = styled.button`
background-color: ${colors.orange1} !important;
@@ -1,7 +1,7 @@
import React, { ReactNode } from "react";
import styled from "styled-components";
import { Draggable } from "react-beautiful-dnd";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import { Question, InputProps } from "./common";
import OptionsWidget from "./OptionsWidget";
import TypeWidget from "./TypeWidget";
+1 -1
View File
@@ -3,7 +3,7 @@ import Head from "next/head";
import { AppProps } from "next/app";
import styled, { createGlobalStyle } from "styled-components";
import { ToastContainer } from "react-toastify";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import breakpoints from "@theme/breakpoints";
import LocaleStore from "../i18n";
+1 -1
View File
@@ -1,7 +1,7 @@
import React from "react";
import styled from "styled-components";
import { Divider, TextSection, Link } from "@components/index";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import ContactCard from "@components/ContactCard";
import BoardJson from "./board.json";
+1 -1
View File
@@ -11,7 +11,7 @@ import {
} from "@components/index";
import Event from "@models/Event";
import Post from "@models/Feed";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import FullWidthSection from "@components/Sections/FullWidthSection";
import noop from "@utils/noop";
+1 -1
View File
@@ -5,7 +5,7 @@ import { SignupForm } from "@models/Signup";
import Checkboxes from "@components/Widgets/Checkbox/Checkboxes";
import RadioButtonWidget from "@components/Widgets/RadioButton/RadioButtonWidget";
import { TextSection, ChangeLanguageButton } from "@components/index";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import FormWrapper from "@views/common/FormWrapper";
import Loader from "@components/Loader";
import { buildFormSchema, buildUISchema } from "./FormUtils";
+1 -1
View File
@@ -1,7 +1,7 @@
import React from "react";
import styled from "styled-components";
import { ISubmitEvent, IChangeEvent, ErrorSchema } from "react-jsonschema-form";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import Event from "@models/Event";
import Post from "@models/Feed";
import { SignupForm } from "@models/Signup";
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import styled from "styled-components";
import { colors } from "@theme/colors";
import colors from "@theme/colors";
import AdminPageWrapper from "@views/common/AdminPageWrapper";
const Main = styled.div`