diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-21 08:03:06 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-21 08:03:06 +0800 |
commit | a67b34700e48cdf9a54c601af4ec9b9112fe4803 (patch) | |
tree | bb418b33a8e94fb0b7af3fddf20046cec4d7d22b /packages/website/ts/components | |
parent | abdf91c691b924b75d71db49fba296da9c8ddcac (diff) | |
download | dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.tar dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.tar.gz dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.tar.bz2 dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.tar.lz dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.tar.xz dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.tar.zst dexon-sol-tools-a67b34700e48cdf9a54c601af4ec9b9112fe4803.zip |
feat: remove @next directory from all imports
Diffstat (limited to 'packages/website/ts/components')
22 files changed, 78 insertions, 78 deletions
diff --git a/packages/website/ts/components/aboutPageLayout.tsx b/packages/website/ts/components/aboutPageLayout.tsx index 86a94ae2b..a2fd9dd72 100644 --- a/packages/website/ts/components/aboutPageLayout.tsx +++ b/packages/website/ts/components/aboutPageLayout.tsx @@ -2,13 +2,13 @@ import * as _ from 'lodash'; import * as React from 'react'; import styled from 'styled-components'; -import { Button } from 'ts/@next/components/button'; -import { ChapterLink } from 'ts/@next/components/chapter_link'; -import { Column, Section } from 'ts/@next/components/newLayout'; -import { SiteWrap } from 'ts/@next/components/siteWrap'; -import { Heading, Paragraph } from 'ts/@next/components/text'; +import { Button } from 'ts/components/button'; +import { ChapterLink } from 'ts/components/chapter_link'; +import { Column, Section } from 'ts/components/newLayout'; +import { SiteWrap } from 'ts/components/siteWrap'; +import { Heading, Paragraph } from 'ts/components/text'; -import { addFadeInAnimation } from 'ts/@next/constants/animations'; +import { addFadeInAnimation } from 'ts/constants/animations'; import { WebsitePaths } from 'ts/types'; interface Props { diff --git a/packages/website/ts/components/banner.tsx b/packages/website/ts/components/banner.tsx index 6c4d94dc5..76fc1d09e 100644 --- a/packages/website/ts/components/banner.tsx +++ b/packages/website/ts/components/banner.tsx @@ -3,11 +3,11 @@ import styled from 'styled-components'; import { colors } from 'ts/style/colors'; -import { Button } from 'ts/@next/components/button'; -import { ThemeInterface } from 'ts/@next/components/siteWrap'; -import { Paragraph } from 'ts/@next/components/text'; +import { Button } from 'ts/components/button'; +import { ThemeInterface } from 'ts/components/siteWrap'; +import { Paragraph } from 'ts/components/text'; -import { Column, Section } from 'ts/@next/components/newLayout'; +import { Column, Section } from 'ts/components/newLayout'; interface Props { heading?: string; @@ -129,7 +129,7 @@ const Border = ` position: absolute; background-image: ${props => - props.isBottom ? 'url(/images/@next/banner/bottomofcta.png);' : 'url(/images/@next/banner/topofcta.png);'}; + props.isBottom ? 'url(/images/banner/bottomofcta.png);' : 'url(/images/banner/topofcta.png);'}; background-position: ${props => (props.isBottom ? 'left top' : 'left bottom')}; left: 0; width: calc(100% + 214px); diff --git a/packages/website/ts/components/blockIconLink.tsx b/packages/website/ts/components/blockIconLink.tsx index 8d66a4afa..ff7712595 100644 --- a/packages/website/ts/components/blockIconLink.tsx +++ b/packages/website/ts/components/blockIconLink.tsx @@ -3,8 +3,8 @@ import * as React from 'react'; import { match, withRouter } from 'react-router-dom'; import styled from 'styled-components'; -import { Button } from 'ts/@next/components/button'; -import { Icon } from 'ts/@next/components/icon'; +import { Button } from 'ts/components/button'; +import { Icon } from 'ts/components/icon'; interface BaseComponentProps { icon?: string; diff --git a/packages/website/ts/components/button.tsx b/packages/website/ts/components/button.tsx index 348f1b7b4..c9785e48c 100644 --- a/packages/website/ts/components/button.tsx +++ b/packages/website/ts/components/button.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { Link as ReactRouterLink } from 'react-router-dom'; import styled from 'styled-components'; -import { ThemeInterface } from 'ts/@next/components/siteWrap'; +import { ThemeInterface } from 'ts/components/siteWrap'; import { colors } from 'ts/style/colors'; diff --git a/packages/website/ts/components/definition.tsx b/packages/website/ts/components/definition.tsx index 8adef8d54..c7fac5177 100644 --- a/packages/website/ts/components/definition.tsx +++ b/packages/website/ts/components/definition.tsx @@ -1,9 +1,9 @@ import * as React from 'react'; import styled from 'styled-components'; -import { Button } from 'ts/@next/components/button'; -import { Icon } from 'ts/@next/components/icon'; -import { Heading, Paragraph } from 'ts/@next/components/text'; +import { Button } from 'ts/components/button'; +import { Icon } from 'ts/components/icon'; +import { Heading, Paragraph } from 'ts/components/text'; interface Action { label: string; diff --git a/packages/website/ts/components/dropdowns/dropdown_developers.tsx b/packages/website/ts/components/dropdowns/dropdown_developers.tsx index 96d88846b..dc6b70d21 100644 --- a/packages/website/ts/components/dropdowns/dropdown_developers.tsx +++ b/packages/website/ts/components/dropdowns/dropdown_developers.tsx @@ -3,10 +3,10 @@ import * as _ from 'lodash'; import * as React from 'react'; import styled, { withTheme } from 'styled-components'; -import { Button } from 'ts/@next/components/button'; -import { Column, FlexWrap, WrapGrid } from 'ts/@next/components/newLayout'; -import { ThemeValuesInterface } from 'ts/@next/components/siteWrap'; -import { Heading } from 'ts/@next/components/text'; +import { Button } from 'ts/components/button'; +import { Column, FlexWrap, WrapGrid } from 'ts/components/newLayout'; +import { ThemeValuesInterface } from 'ts/components/siteWrap'; +import { Heading } from 'ts/components/text'; import { WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; diff --git a/packages/website/ts/components/dropdowns/dropdown_products.tsx b/packages/website/ts/components/dropdowns/dropdown_products.tsx index 886cee44a..93fd1a4fe 100644 --- a/packages/website/ts/components/dropdowns/dropdown_products.tsx +++ b/packages/website/ts/components/dropdowns/dropdown_products.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; -import { Heading, Paragraph } from 'ts/@next/components/text'; +import { Heading, Paragraph } from 'ts/components/text'; import { WebsitePaths } from 'ts/types'; const navData = [ diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx index b30a0cc5e..3765a32ca 100644 --- a/packages/website/ts/components/footer.tsx +++ b/packages/website/ts/components/footer.tsx @@ -4,9 +4,9 @@ import * as React from 'react'; import MediaQuery from 'react-responsive'; import styled from 'styled-components'; -import { Logo } from 'ts/@next/components/logo'; -import { Column, FlexWrap, WrapGrid } from 'ts/@next/components/newLayout'; -import { NewsletterForm } from 'ts/@next/components/newsletter_form'; +import { Logo } from 'ts/components/logo'; +import { Column, FlexWrap, WrapGrid } from 'ts/components/newLayout'; +import { NewsletterForm } from 'ts/components/newsletter_form'; import { WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; diff --git a/packages/website/ts/components/header.tsx b/packages/website/ts/components/header.tsx index e886923df..90e097070 100644 --- a/packages/website/ts/components/header.tsx +++ b/packages/website/ts/components/header.tsx @@ -6,14 +6,14 @@ import styled, { css, withTheme } from 'styled-components'; import Headroom from 'react-headroom'; -import { Button } from 'ts/@next/components/button'; -import { DropdownDevelopers } from 'ts/@next/components/dropdowns/dropdown_developers'; -import { DropdownProducts } from 'ts/@next/components/dropdowns/dropdown_products'; -import { Hamburger } from 'ts/@next/components/hamburger'; -import { Logo } from 'ts/@next/components/logo'; -import { MobileNav } from 'ts/@next/components/mobileNav'; -import { FlexWrap } from 'ts/@next/components/newLayout'; -import { ThemeValuesInterface } from 'ts/@next/components/siteWrap'; +import { Button } from 'ts/components/button'; +import { DropdownDevelopers } from 'ts/components/dropdowns/dropdown_developers'; +import { DropdownProducts } from 'ts/components/dropdowns/dropdown_products'; +import { Hamburger } from 'ts/components/hamburger'; +import { Logo } from 'ts/components/logo'; +import { MobileNav } from 'ts/components/mobileNav'; +import { FlexWrap } from 'ts/components/newLayout'; +import { ThemeValuesInterface } from 'ts/components/siteWrap'; import { WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; diff --git a/packages/website/ts/components/hero.tsx b/packages/website/ts/components/hero.tsx index 4c8874d3e..a662ee3a5 100644 --- a/packages/website/ts/components/hero.tsx +++ b/packages/website/ts/components/hero.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import styled from 'styled-components'; -import { addFadeInAnimation } from 'ts/@next/constants/animations'; +import { addFadeInAnimation } from 'ts/constants/animations'; interface Props { title: string; diff --git a/packages/website/ts/components/icon.tsx b/packages/website/ts/components/icon.tsx index fc9d488f9..165e999b9 100644 --- a/packages/website/ts/components/icon.tsx +++ b/packages/website/ts/components/icon.tsx @@ -2,8 +2,8 @@ import * as React from 'react'; import Loadable from 'react-loadable'; import styled from 'styled-components'; -import { Paragraph } from 'ts/@next/components/text'; -import { getCSSPadding, PaddingInterface } from 'ts/@next/constants/utilities'; +import { Paragraph } from 'ts/components/text'; +import { getCSSPadding, PaddingInterface } from 'ts/constants/utilities'; interface IconProps extends PaddingInterface { name?: string; @@ -14,7 +14,7 @@ interface IconProps extends PaddingInterface { export const Icon: React.FunctionComponent<IconProps> = (props: IconProps) => { if (props.name && !props.component) { const IconSVG = Loadable({ - loader: async () => import(/* webpackChunkName: "icon" */ `ts/@next/icons/illustrations/${props.name}.svg`), + loader: async () => import(/* webpackChunkName: "icon" */ `ts/icons/illustrations/${props.name}.svg`), loading: () => <Paragraph>Loading</Paragraph>, }); diff --git a/packages/website/ts/components/logo.tsx b/packages/website/ts/components/logo.tsx index 227d48ee0..19aeb901e 100644 --- a/packages/website/ts/components/logo.tsx +++ b/packages/website/ts/components/logo.tsx @@ -1,8 +1,8 @@ import * as React from 'react'; import styled from 'styled-components'; -import { ThemeInterface } from 'ts/@next/components/siteWrap'; -import LogoIcon from 'ts/@next/icons/logo-with-type.svg'; +import { ThemeInterface } from 'ts/components/siteWrap'; +import LogoIcon from 'ts/icons/logo-with-type.svg'; interface LogoInterface { theme?: ThemeInterface; diff --git a/packages/website/ts/components/mobileNav.tsx b/packages/website/ts/components/mobileNav.tsx index 13cf46fca..573d21596 100644 --- a/packages/website/ts/components/mobileNav.tsx +++ b/packages/website/ts/components/mobileNav.tsx @@ -4,7 +4,7 @@ import styled from 'styled-components'; import { Link } from 'react-router-dom'; -import { WrapGrid, WrapProps } from 'ts/@next/components/newLayout'; +import { WrapGrid, WrapProps } from 'ts/components/newLayout'; import { WebsitePaths } from 'ts/types'; interface Props { diff --git a/packages/website/ts/components/modals/modal_contact.tsx b/packages/website/ts/components/modals/modal_contact.tsx index b97baf5e7..d9c276584 100644 --- a/packages/website/ts/components/modals/modal_contact.tsx +++ b/packages/website/ts/components/modals/modal_contact.tsx @@ -7,11 +7,11 @@ import { colors } from 'ts/style/colors'; import { DialogContent, DialogOverlay } from '@reach/dialog'; import '@reach/dialog/styles.css'; -import { Button } from 'ts/@next/components/button'; -import { Icon } from 'ts/@next/components/icon'; -import { Input, InputWidth } from 'ts/@next/components/modals/input'; -import { Heading, Paragraph } from 'ts/@next/components/text'; -import { GlobalStyle } from 'ts/@next/constants/globalStyle'; +import { Button } from 'ts/components/button'; +import { Icon } from 'ts/components/icon'; +import { Input, InputWidth } from 'ts/components/modals/input'; +import { Heading, Paragraph } from 'ts/components/text'; +import { GlobalStyle } from 'ts/constants/globalStyle'; interface Props { theme?: GlobalStyle; diff --git a/packages/website/ts/components/newsletter_form.tsx b/packages/website/ts/components/newsletter_form.tsx index 8572ccc5f..4a7abb7ec 100644 --- a/packages/website/ts/components/newsletter_form.tsx +++ b/packages/website/ts/components/newsletter_form.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import styled, { withTheme } from 'styled-components'; -import { ThemeValuesInterface } from 'ts/@next/components/siteWrap'; +import { ThemeValuesInterface } from 'ts/components/siteWrap'; import { colors } from 'ts/style/colors'; import { errorReporter } from 'ts/utils/error_reporter'; diff --git a/packages/website/ts/components/sections/landing/about.tsx b/packages/website/ts/components/sections/landing/about.tsx index 7b51b0d13..9c369d83a 100644 --- a/packages/website/ts/components/sections/landing/about.tsx +++ b/packages/website/ts/components/sections/landing/about.tsx @@ -1,10 +1,10 @@ import * as React from 'react'; import styled from 'styled-components'; -import { Button } from 'ts/@next/components/button'; -import { Icon, InlineIconWrap } from 'ts/@next/components/icon'; -import { Column, FlexWrap, Section } from 'ts/@next/components/newLayout'; -import { Paragraph } from 'ts/@next/components/text'; +import { Button } from 'ts/components/button'; +import { Icon, InlineIconWrap } from 'ts/components/icon'; +import { Column, FlexWrap, Section } from 'ts/components/newLayout'; +import { Paragraph } from 'ts/components/text'; import { WebsitePaths } from 'ts/types'; interface FigureProps { diff --git a/packages/website/ts/components/sections/landing/clients.tsx b/packages/website/ts/components/sections/landing/clients.tsx index 4170fde46..9a68fbf4c 100644 --- a/packages/website/ts/components/sections/landing/clients.tsx +++ b/packages/website/ts/components/sections/landing/clients.tsx @@ -1,9 +1,9 @@ import * as _ from 'lodash'; import * as React from 'react'; import styled from 'styled-components'; -import { Heading } from 'ts/@next/components/text'; +import { Heading } from 'ts/components/text'; -import { Section, WrapGrid } from 'ts/@next/components/newLayout'; +import { Section, WrapGrid } from 'ts/components/newLayout'; interface ProjectLogo { name: string; @@ -18,57 +18,57 @@ interface StyledProjectInterface { const projects: ProjectLogo[] = [ { name: 'Radar Relay', - imageUrl: 'images/@next/clients/radar-relay.svg', + imageUrl: 'images/clients/radar-relay.svg', persistOnMobile: true, }, { name: 'Paradex', - imageUrl: 'images/@next/clients/paradex.svg', + imageUrl: 'images/clients/paradex.svg', persistOnMobile: true, }, { name: 'Star Bit Ex', - imageUrl: 'images/@next/clients/starbitex.svg', + imageUrl: 'images/clients/starbitex.svg', }, { name: 'LedgerDex', - imageUrl: 'images/@next/clients/ledgerdex.svg', + imageUrl: 'images/clients/ledgerdex.svg', }, { name: 'OpenRelay', - imageUrl: 'images/@next/clients/openrelay.svg', + imageUrl: 'images/clients/openrelay.svg', persistOnMobile: true, }, { name: 'Bamboo Relay', - imageUrl: 'images/@next/clients/bamboo.svg', + imageUrl: 'images/clients/bamboo.svg', persistOnMobile: true, }, { name: 'dEX', - imageUrl: 'images/@next/clients/ercdex.svg', + imageUrl: 'images/clients/ercdex.svg', persistOnMobile: true, }, { name: 'emoon', - imageUrl: 'images/@next/clients/emoon.svg', + imageUrl: 'images/clients/emoon.svg', persistOnMobile: true, }, { name: 'Gods Unchained', - imageUrl: 'images/@next/clients/godsUnchained.svg', + imageUrl: 'images/clients/godsUnchained.svg', }, { name: 'Instex', - imageUrl: 'images/@next/clients/instex.svg', + imageUrl: 'images/clients/instex.svg', }, { name: 'Lake Trade', - imageUrl: 'images/@next/clients/laketrade.svg', + imageUrl: 'images/clients/laketrade.svg', }, { name: 'Veil', - imageUrl: 'images/@next/clients/veil.svg', + imageUrl: 'images/clients/veil.svg', }, ]; diff --git a/packages/website/ts/components/sections/landing/cta.tsx b/packages/website/ts/components/sections/landing/cta.tsx index ec7f5d961..ec5a58a58 100644 --- a/packages/website/ts/components/sections/landing/cta.tsx +++ b/packages/website/ts/components/sections/landing/cta.tsx @@ -1,10 +1,10 @@ import * as React from 'react'; -import { BlockIconLink } from 'ts/@next/components/blockIconLink'; -import { Section } from 'ts/@next/components/newLayout'; +import { BlockIconLink } from 'ts/components/blockIconLink'; +import { Section } from 'ts/components/newLayout'; -import { AnimatedChatIcon } from 'ts/@next/components/animatedChatIcon'; -import { AnimatedCompassIcon } from 'ts/@next/components/animatedCompassIcon'; +import { AnimatedChatIcon } from 'ts/components/animatedChatIcon'; +import { AnimatedCompassIcon } from 'ts/components/animatedCompassIcon'; import { WebsitePaths } from 'ts/types'; interface Props { diff --git a/packages/website/ts/components/sections/landing/hero.tsx b/packages/website/ts/components/sections/landing/hero.tsx index cf67ad66d..489757286 100644 --- a/packages/website/ts/components/sections/landing/hero.tsx +++ b/packages/website/ts/components/sections/landing/hero.tsx @@ -1,10 +1,10 @@ import * as React from 'react'; -import { Button } from 'ts/@next/components/button'; -import { Hero } from 'ts/@next/components/hero'; -import { LandingAnimation } from 'ts/@next/components/heroImage'; +import { Button } from 'ts/components/button'; +import { Hero } from 'ts/components/hero'; +import { LandingAnimation } from 'ts/components/heroImage'; -import { HeroAnimation } from 'ts/@next/components/heroAnimation'; +import { HeroAnimation } from 'ts/components/heroAnimation'; import { WebsitePaths } from 'ts/types'; export const SectionLandingHero = () => ( diff --git a/packages/website/ts/components/siteWrap.tsx b/packages/website/ts/components/siteWrap.tsx index 75cb9a268..316896dbb 100644 --- a/packages/website/ts/components/siteWrap.tsx +++ b/packages/website/ts/components/siteWrap.tsx @@ -3,9 +3,9 @@ import styled, { ThemeProvider } from 'styled-components'; import { colors } from 'ts/style/colors'; -import { Footer } from 'ts/@next/components/footer'; -import { Header } from 'ts/@next/components/header'; -import { GlobalStyles } from 'ts/@next/constants/globalStyle'; +import { Footer } from 'ts/components/footer'; +import { Header } from 'ts/components/header'; +import { GlobalStyles } from 'ts/constants/globalStyle'; interface Props { theme?: 'dark' | 'light' | 'gray'; diff --git a/packages/website/ts/components/slider/slider.tsx b/packages/website/ts/components/slider/slider.tsx index 33a352b9f..f0a29f894 100644 --- a/packages/website/ts/components/slider/slider.tsx +++ b/packages/website/ts/components/slider/slider.tsx @@ -4,8 +4,8 @@ import styled from 'styled-components'; import { colors } from 'ts/style/colors'; -import { Icon } from 'ts/@next/components/icon'; -import { Heading, Paragraph } from 'ts/@next/components/text'; +import { Icon } from 'ts/components/icon'; +import { Heading, Paragraph } from 'ts/components/text'; interface SliderProps {} diff --git a/packages/website/ts/components/text.tsx b/packages/website/ts/components/text.tsx index 9f6ed9e7a..10f272e73 100644 --- a/packages/website/ts/components/text.tsx +++ b/packages/website/ts/components/text.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import styled from 'styled-components'; -import { getCSSPadding, PaddingInterface } from 'ts/@next/constants/utilities'; +import { getCSSPadding, PaddingInterface } from 'ts/constants/utilities'; interface BaseTextInterface extends PaddingInterface { size?: 'default' | 'medium' | 'large' | 'small' | number; |