Updating legend to use gray/blue gradient (#28206) (#28604)

This commit is contained in:
Chris Cowan 2019-01-11 14:06:31 -07:00 committed by GitHub
parent aa552ad5bc
commit 8b46218603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,17 +58,9 @@ const initialState = {
value: 0,
color: '#D3DAE6',
},
{
value: 0.65,
color: '#00B3A4',
},
{
value: 0.8,
color: '#E6C220',
},
{
value: 1,
color: '#DB1374',
color: '#3185FC',
},
],
},
@ -82,7 +74,7 @@ interface WithOptionsProps {
type State = Readonly<typeof initialState>;
export const withOptions = <P extends InfraOptions>(WrappedComponent: React.ComponentType<P>) => (
export const withOptions = (WrappedComponent: React.ComponentType<InfraOptions>) => (
<WithOptions>{args => <WrappedComponent {...args} />}</WithOptions>
);