mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-29 14:16:36 +00:00
Simplify FlashAnother button
Change-type: patch
This commit is contained in:
parent
6db0172a50
commit
4880275e7b
@ -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>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user