mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-05 04:40:19 +03:00
added support for extensionsHook for ShelfIcon
This commit is contained in:
parent
b2d8e0f5b7
commit
100552f74b
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import styled from '../styled-components';
|
import styled, { extensionsHook } from '../styled-components';
|
||||||
|
|
||||||
const directionMap = {
|
const directionMap = {
|
||||||
left: '90deg',
|
left: '90deg',
|
||||||
|
@ -45,6 +45,8 @@ export const ShelfIcon = styled(IntShelfIcon)`
|
||||||
fill: ${({ color, theme }) =>
|
fill: ${({ color, theme }) =>
|
||||||
(color && theme.colors.responses[color] && theme.colors.responses[color].color) || color};
|
(color && theme.colors.responses[color] && theme.colors.responses[color].color) || color};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
${extensionsHook('ShelfIcon')};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const Badge = styled.span<{ type: string }>`
|
export const Badge = styled.span<{ type: string }>`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user