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