@@ -35,28 +32,12 @@ const StyledDiv = styled.div`
font-size: var(--font-size-small);
line-height: 1.5rem;
- &.theme--dark {
- .info-icon {
- margin-right: 0.2rem;
-
- svg {
- color: #8E8E8E;
- }
- }
- }
-
- &.theme--light {
- .info-icon {
- margin-right: 0.2rem;
-
- svg {
- color: #4D4D4D;
- }
- }
- }
-
.info-icon {
margin-right: 0.2rem;
+
+ svg {
+ color: var(--color-bounty-info);
+ }
}
.description {
diff --git a/packages/react-components/src/IdentityIcon/index.tsx b/packages/react-components/src/IdentityIcon/index.tsx
index 639a4f3d0b..4e10832377 100644
--- a/packages/react-components/src/IdentityIcon/index.tsx
+++ b/packages/react-components/src/IdentityIcon/index.tsx
@@ -8,7 +8,7 @@ import type { AccountId, AccountIndex, Address } from '@polkadot/types/interface
import React, { useCallback } from 'react';
import { getSystemIcon } from '@polkadot/apps-config';
-import { useApi, useQueue, useTheme } from '@polkadot/react-hooks';
+import { useApi, useQueue } from '@polkadot/react-hooks';
import BaseIdentityIcon from '@polkadot/react-identicon';
import { settings } from '@polkadot/ui-settings';
@@ -42,7 +42,6 @@ function isCodec (value?: AccountId | AccountIndex | Address | string | Uint8Arr
function IdentityIcon ({ className = '', forceIconType, prefix, size = 24, theme, value }: Props): React.ReactElement
{
const { apiEndpoint, isEthereum, specName, systemName } = useApi();
const { t } = useTranslation();
- const { themeClassName } = useTheme();
const { queueAction } = useQueue();
const thisTheme = theme || getIdentityTheme(apiEndpoint, systemName, specName);
@@ -63,7 +62,7 @@ function IdentityIcon ({ className = '', forceIconType, prefix, size = 24, theme
return (
({
}));
jest.mock('@polkadot/react-hooks/useTheme', () => ({
- useTheme: () => ({ theme: 'light', themeClassName: 'theme--light' })
+ useTheme: () => ({
+ theme: 'light',
+ themeClassName: 'theme--light'
+ })
}));
export abstract class Page {