More lint cleanup

This commit is contained in:
Ezekiel Aquino
2018-12-14 17:50:27 +01:00
parent bdc8f9aa2a
commit 9fa9a30c4d
9 changed files with 9 additions and 31 deletions

View File

@@ -1,8 +1,6 @@
import * as React from 'react';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
export enum InputWidth {
Half,
Full,
@@ -15,10 +13,6 @@ interface InputProps {
type?: string;
}
interface LabelProps {
string: boolean;
}
export const Input = React.forwardRef((props: InputProps, ref) => {
const { name, label, type } = props;
const id = `input-${name}`;

View File

@@ -3,9 +3,8 @@ import * as React from 'react';
import styled from 'styled-components';
import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
import { Column, FlexWrap, Section } from 'ts/@next/components/newLayout';
import { Link } from 'ts/@next/components/link';
import { Separator } from 'ts/@next/components/separator';
import { Column, FlexWrap, Section } from 'ts/@next/components/newLayout';
import { Heading, Paragraph } from 'ts/@next/components/text';
interface PositionInterface {

View File

@@ -4,11 +4,9 @@ import styled from 'styled-components';
import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
import { Definition } from 'ts/@next/components/definition';
import { Icon } from 'ts/@next/components/icon';
import { Image } from 'ts/@next/components/image';
import { Column, Section } from 'ts/@next/components/newLayout';
import { Separator } from 'ts/@next/components/separator';
import { Heading, Paragraph } from 'ts/@next/components/text';
import { Heading } from 'ts/@next/components/text';
const values = [
{

View File

@@ -4,9 +4,8 @@ import styled from 'styled-components';
import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
import { Button } from 'ts/@next/components/button';
import { Column, FlexWrap, Section } from 'ts/@next/components/newLayout';
import { Separator } from 'ts/@next/components/separator';
import { Heading, Paragraph } from 'ts/@next/components/text';
import { Column, FlexWrap } from 'ts/@next/components/newLayout';
import { Paragraph } from 'ts/@next/components/text';
interface HighlightInterface {
logo: string;

View File

@@ -5,7 +5,7 @@ import styled from 'styled-components';
import { colors } from 'ts/style/colors';
import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
import { Column, Section, WrapGrid } from 'ts/@next/components/newLayout';
import { Column, Section } from 'ts/@next/components/newLayout';
import { Heading, Paragraph } from 'ts/@next/components/text';
interface TeamMember {

View File

@@ -4,7 +4,6 @@ import SyntaxHighlighter from 'react-syntax-highlighter';
import { Button } from 'ts/components/ui/button';
import { Container } from 'ts/components/ui/container';
import { colors } from 'ts/style/colors';
import { styled } from 'ts/style/theme';
import { zIndex } from 'ts/style/z_index';

View File

@@ -18,7 +18,7 @@ import { WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants';
// New components
import { Heading, Paragraph } from 'ts/@next/components/text';
import { Heading } from 'ts/@next/components/text';
import { Select, SelectItemConfig } from 'ts/@next/pages/instant/select';
import { assetMetaDataMap } from '../../../../../instant/src/data/asset_meta_data_map';

View File

@@ -1,5 +1,4 @@
import * as React from 'react';
import styled from 'styled-components';
import {SiteWrap} from 'ts/@next/components/siteWrap';
import {SectionLandingAbout} from 'ts/@next/components/sections/landing/about';
@@ -9,8 +8,6 @@ import {SectionLandingHero} from 'ts/@next/components/sections/landing/hero';
import { ModalContact } from 'ts/@next/components/modals/modal_contact';
import LogoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg';
interface Props {
theme: {
bgColor: string;
@@ -35,11 +32,11 @@ export class NextLanding extends React.Component<Props> {
);
}
private _onOpenContactModal = (): void => {
public _onOpenContactModal = (): void => {
this.setState({ isContactModalOpen: true });
}
private _onDismissContactModal = (): void => {
public _onDismissContactModal = (): void => {
this.setState({ isContactModalOpen: false });
}
}

View File

@@ -3,16 +3,13 @@ import * as React from 'react';
import AnchorLink from 'react-anchor-link-smooth-scroll';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
import {Hero} from 'ts/@next/components/hero';
import { Banner } from 'ts/@next/components/banner';
import { Button } from 'ts/@next/components/button';
import { Icon } from 'ts/@next/components/icon';
import { SiteWrap } from 'ts/@next/components/siteWrap';
import { Slide, Slider } from 'ts/@next/components/slider/slider';
import { Heading, Paragraph } from 'ts/@next/components/text';
import { Heading } from 'ts/@next/components/text';
import {Definition} from 'ts/@next/components/definition';
import {Column, Section, WrapSticky} from 'ts/@next/components/newLayout';
@@ -272,8 +269,3 @@ const ChapterLink = styled(AnchorLink)`
opacity: 1;
}
`;
const ChapterItemWrap = styled.div`
max-width: 560px;
margin-top: 60px;
`;