Skip to content

Commit

Permalink
fix: align logo by center
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Mar 9, 2018
1 parent 49c23c9 commit 18ec3ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ApiLogo/ApiLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { observer } from 'mobx-react';
import * as React from 'react';
import { OpenAPIInfo } from '../../types';
import { LogoImgEl, LogoWrap } from './styled.elements';

const LinkWrap = url => Component => <a href={url}>{Component}</a>;
import { LogoImgEl, LogoWrap, LinkWrap } from './styled.elements';

@observer
export class ApiLogo extends React.Component<{ info: OpenAPIInfo }> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react';
import styled from '../../styled-components';

export const LogoImgEl = styled.img`
Expand All @@ -10,3 +11,9 @@ export const LogoImgEl = styled.img`
export const LogoWrap = styled.div`
text-align: center;
`;

const Link = styled.a`
display: inline-block;
`;

export const LinkWrap = url => Component => <Link href={url}>{Component}</Link>;

0 comments on commit 18ec3ac

Please sign in to comment.