Skip to content

Commit

Permalink
use styled components instead of inline style
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Oct 3, 2022
1 parent 209dde3 commit c2a459a
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const EndpointPolicyCreateMultiStepExtension = memo(() => {
<MediumCustomSpacer />

<EuiFlexGroup>
<EuiFlexItem grow={false} style={{ alignItems: 'center' }}>
<CenteredEuiFlexItem grow={false}>
<LargeSecurityLogo />
</EuiFlexItem>
</CenteredEuiFlexItem>

<EuiFlexItem>
<div>
Expand Down Expand Up @@ -70,10 +70,16 @@ const MediumCustomSpacer = () => (
</>
);

const LargeSecurityLogo = () => (
<EuiIcon type="logoSecurity" style={{ width: '128px', height: '128px' }} />
);
const CenteredEuiFlexItem = styled(EuiFlexItem)`
align-items: center;
`;

const LargeSecurityLogo = () => <LargeLogo type="logoSecurity" />;

const LargeLogo = styled(EuiIcon)`
width: 128px;
height: 128px;
`;
const Features = () => (
<EuiFlexGroup alignItems="center" gutterSize="s" responsive={false}>
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit c2a459a

Please sign in to comment.