Removed suprflous code from table, tutorial steps, unordered list

This commit is contained in:
Piotr Janosz
2019-07-06 19:30:13 +02:00
committed by fabioberger
parent fcf975a65c
commit ec76186c23
4 changed files with 8 additions and 36 deletions

View File

@@ -1,10 +1,10 @@
import { Link } from '@0x/react-shared';
import * as _ from 'lodash';
import * as React from 'react';
import React from 'react';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
import { RatingBar } from 'ts/components/docs/resource/rating_bar';
import { colors } from 'ts/style/colors';
export interface LevelProps {
difficulty: Difficulty;
}

View File

@@ -1,15 +1,8 @@
import React from 'react';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
export interface ITableProps {
children: React.ReactNode;
}
export const Table: React.FC<ITableProps> = ({ children }) => <TableWrapper>{children}</TableWrapper>;
const TableWrapper = styled.table`
export const Table = styled.table`
border: 1px solid #cfcfcf;
margin-bottom: 1.875rem;
width: 100%;

View File

@@ -1,13 +1,6 @@
import React from 'react';
import styled from 'styled-components';
interface ITutorialStepsProps {
children: React.ReactNode;
}
export const TutorialSteps: React.FC<ITutorialStepsProps> = ({ children }) => <Wrapper>{children}</Wrapper>;
const Wrapper = styled.ol`
export const TutorialSteps = styled.ol`
list-style-type: none;
counter-reset: tutorialSteps;
margin-bottom: 1.875rem;

View File

@@ -1,21 +1,7 @@
import * as _ from 'lodash';
import * as React from 'react';
import styled, { withTheme } from 'styled-components';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
export interface Props {
children: React.ReactNode;
}
export const UnorderedList: React.FunctionComponent<Props> = (props: Props) => (
<>
<Wrapper>{props.children}</Wrapper>
</>
);
UnorderedList.defaultProps = {};
const Wrapper = styled.ul`
export const UnorderedList = styled.ul`
list-style-type: disc;
margin-bottom: 1.875rem;
padding-left: 1rem;