Skip to content

Commit

Permalink
change footer to imageOnly in IUseUtilityStyle props too
Browse files Browse the repository at this point in the history
  • Loading branch information
eburdekin committed Oct 28, 2024
1 parent 9a2bd58 commit 77a1ae2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions products/statement-generator/src/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const useStyles = makeStyles<Theme, IUseUtilityStyle>(({ palette, spacing }) =>
logoContainer: {
display: 'flex',
fontSize: 20,
maxHeight: ({ footer }: IUseUtilityStyle) => (footer ? '25px' : 'null'),
marginBottom: ({ footer }: IUseUtilityStyle) => (footer ? 0 : 'null'),
maxHeight: ({ imageOnly }: IUseUtilityStyle) =>
imageOnly ? '25px' : 'null',
marginBottom: ({ imageOnly }: IUseUtilityStyle) =>
imageOnly ? 0 : 'null',
},

logoLink: {
Expand All @@ -22,7 +24,8 @@ const useStyles = makeStyles<Theme, IUseUtilityStyle>(({ palette, spacing }) =>
fontWeight: 800,
color: ({ pageTheme }: IUseUtilityStyle) =>
pageTheme === 'dark' ? 'white' : palette.common.black,
fontSize: ({ footer }: IUseUtilityStyle) => (footer ? 12 : 'inherit'),
fontSize: ({ imageOnly }: IUseUtilityStyle) =>
imageOnly ? 12 : 'inherit',
},
})
);
Expand Down
2 changes: 1 addition & 1 deletion products/statement-generator/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
interface IUseUtilityStyle {
pageTheme?: string;
footer?: boolean;
imageOnly?: boolean;
}

0 comments on commit 77a1ae2

Please sign in to comment.