Skip to content

Commit

Permalink
feat: add logo width to appbar
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisPannekeet committed Nov 18, 2020
1 parent 14e893a commit ceffe0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/appBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
};

const logo = useText(logoSource);
const LogoCmp = logo && <img src={logo} width={logoWidth} alt="" />;
const LogoCmp = logo && <img src={logo} className={classes.logo} alt="" />;
const LogoComponent = endpoint.id ? (
// eslint-disable-next-line jsx-a11y/anchor-is-valid
<Link endpoint={endpoint}>{LogoCmp}</Link>
Expand Down Expand Up @@ -107,6 +107,9 @@
],
zIndex: '1201 !important',
},
logo:{
width: ({ options: { logoWidth } }) => logoWidth,
},
toolbar: {
flexDirection: ({ options: { alignItems } }) =>
alignItems === 'right' ? 'row' : 'row-reverse',
Expand Down

0 comments on commit ceffe0d

Please sign in to comment.