Simplify FlashAnother button

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-05-28 17:51:48 +02:00
parent 6db0172a50
commit 4880275e7b

View File

@ -16,13 +16,13 @@
import * as React from 'react';
import styled from 'styled-components';
import { position, right } from 'styled-system';
import { BaseButton, ThemedProvider } from '../../styled-components';
import { BaseButton } from '../../styled-components';
const Div = styled.div<any>`
${position}
${right}
const FlashAnotherButton = styled(BaseButton)`
position: absolute;
right: 152px;
top: 60px;
`;
export interface FlashAnotherProps {
@ -31,12 +31,8 @@ export interface FlashAnotherProps {
export const FlashAnother = (props: FlashAnotherProps) => {
return (
<ThemedProvider>
<Div position="absolute" right="152px">
<BaseButton primary onClick={props.onClick}>
Flash Another
</BaseButton>
</Div>
</ThemedProvider>
<FlashAnotherButton primary onClick={props.onClick}>
Flash Another
</FlashAnotherButton>
);
};