Skip to content

Commit

Permalink
Merge pull request #372 from sofarsounds/update-logowithslogan-width
Browse files Browse the repository at this point in the history
Update LogoWithSlogan component width
  • Loading branch information
Kirs Imsong authored Nov 12, 2021
2 parents a1bbe57 + 8d49017 commit 7dc0b0a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sofarsounds/maestro",
"version": "7.4.18",
"version": "7.4.19",
"description": "The official sofar sounds react uikit library",
"main": "dist/index.js",
"scripts": {
Expand Down
36 changes: 22 additions & 14 deletions src/molecules/Footer/LogoWithSlogan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,29 @@ const Slogan = styled.div`

export interface LogoWithSloganProps {
href?: any;
logoWidthPx?: string;
}

const LogoWithSlogan: React.SFC<LogoWithSloganProps> = ({ href }) => (
<Col xs={12} xl={5}>
<LogoSloganContainer>
{href ? (
<a href={href}>
<Logo width="133px" invert />
</a>
) : (
<Logo width="133px" invert />
)}
<Slogan>Intimate gigs all around the world</Slogan>
</LogoSloganContainer>
</Col>
);
const LogoWithSlogan: React.FC<LogoWithSloganProps> = ({
href,
logoWidthPx
}) => {
const logoWidth = logoWidthPx ? logoWidthPx : '104px';

return (
<Col xs={12} xl={5}>
<LogoSloganContainer>
{href ? (
<a href={href}>
<Logo width={logoWidth} invert />
</a>
) : (
<Logo width={logoWidth} invert />
)}
<Slogan>Intimate gigs all around the world</Slogan>
</LogoSloganContainer>
</Col>
);
};

export default LogoWithSlogan;

0 comments on commit 7dc0b0a

Please sign in to comment.