Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 6306c16

Browse files
fixed color issue
1 parent 6c45fec commit 6306c16

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/components/HyperMediaControls/Dialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export default withStyles(styles)(
7878
className={classes.button}
7979
rel={rel}
8080
title={title}
81-
color={'primary'}
8281
/>
8382
<Dialog
8483
open={open}

src/components/HyperMediaControls/LinkButton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const NonTemplatedLinkButton: StatelessComponent<
8282
<RelButton
8383
rel={rel}
8484
title={link.title}
85-
color={'inherit'}
8685
onClick={preventDefault(() => onNavigate(link, authorization))}
8786
/>
8887
),

src/components/HyperMediaControls/RelButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@ import RelIcon from '../RelIcon';
77
interface RelButtonProps {
88
rel: string;
99
title?: string;
10-
color: SvgIconProps['color'];
1110
}
1211

1312
const RelButton: StatelessComponent<RelButtonProps & ButtonProps> = ({
1413
rel,
1514
onClick,
1615
title,
17-
color,
1816
...props
1917
}) => (
2018
<Button variant={'text'} onClick={onClick} {...props}>
21-
<RelIcon rel={rel} color={color} />
19+
<RelIcon rel={rel} color={'action'} />
2220
{title || rel}
2321
</Button>
2422
);

0 commit comments

Comments
 (0)