Only return string from color getter type
Signed-off-by: James Turley <jamesturley@gocardless.com>
This commit is contained in:
@@ -62,9 +62,7 @@ type GetColorArgs = {
|
||||
max?: number;
|
||||
};
|
||||
|
||||
export type GetColor = (
|
||||
args: GetColorArgs,
|
||||
) => string | BackstageTheme['palette']['error'];
|
||||
export type GetColor = (args: GetColorArgs) => string;
|
||||
|
||||
const defaultGaugeProps = {
|
||||
fractional: true,
|
||||
|
||||
@@ -111,8 +111,8 @@ export const StaticColor = () => (
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<GaugeCard
|
||||
getColor={({ palette }) => palette.error}
|
||||
title="palette.error"
|
||||
getColor={({ palette }) => palette.status.error}
|
||||
title="palette.status.error"
|
||||
progress={0.5}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user