Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lutangar committed Aug 4, 2019
1 parent d224914 commit f4f5bf9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 39 deletions.
2 changes: 0 additions & 2 deletions src/app/background/sagas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { fork, all } from 'redux-saga/effects';
import matchingContexts from './matchingContexts';
import tab from './tab';
import badge from './badge';
import contribution from './contribution';
import externalMessage from './externalMessage';
import theme from '../../theme';
import error from '../../sagas/error';
Expand All @@ -12,7 +11,6 @@ export default function* rootSaga() {
fork(matchingContexts),
fork(tab),
fork(badge(theme.badge)),
fork(contribution),
fork(externalMessage),
fork(error)
]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { Component } from 'react';
import { Field, InjectedFormProps } from 'redux-form';
import { Form, Error } from 'components/atoms/Forms';
import { CenterContainer } from 'components/atoms';
import BorderButton from 'components/atoms/Buttons/BorderButton';
import { CenterContainer, BorderButton } from 'components/atoms';
import {
InputField,
IntentionsSelectorField,
Expand Down
15 changes: 5 additions & 10 deletions src/components/atoms/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ import Loading from 'components/atoms/icons/Loading';
export interface ButtonContainerProps {
theme?: Theme;
href?: string;
to?: string;
target?: '_blank';
rel?: string;
onClick?: (...args: any[]) => any;
disabled?: boolean;
type?: 'submit' | 'reset' | 'button';
}

export interface ButtonProps extends ButtonContainerProps {
loading?: boolean;
children?: ReactNode | string;
disabled?: boolean;
dangerouslySetInnerHTML?: any;
}

Expand Down Expand Up @@ -66,15 +68,8 @@ export const ButtonContainer = styled.button<ButtonContainerProps>`
}
`;

export default ({
loading,
children,
target,
rel,
href,
...props
}: ButtonProps) => (
<ButtonContainer href={href} target={target} rel={rel} {...props}>
export default ({ loading, children, ...props }: ButtonProps) => (
<ButtonContainer {...props}>
{loading ? (
<LoadingRotator>
<Loading />
Expand Down

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/atoms/Buttons/BorderButton/BorderButton.ts

This file was deleted.

0 comments on commit f4f5bf9

Please sign in to comment.