From fc68b5ae0e5acd89957b320cd1945fc56ac601bf Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Wed, 25 Nov 2020 06:14:26 -1000 Subject: [PATCH] export type for icon theme (#404) --- packages/react-identicon/src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-identicon/src/types.ts b/packages/react-identicon/src/types.ts index 2ba9286b..5054ace8 100644 --- a/packages/react-identicon/src/types.ts +++ b/packages/react-identicon/src/types.ts @@ -25,6 +25,8 @@ export interface IdentityProps extends BaseProps { onCopy?: (value: string) => void; prefix?: Prefix; size?: number; - theme?: 'beachball' | 'empty' | 'ethereum' | 'jdenticon' | 'polkadot' | 'substrate'; + theme?: IconTheme; value?: string | Uint8Array | null; } + +export type IconTheme = 'beachball' | 'empty' | 'ethereum' | 'jdenticon' | 'polkadot' | 'substrate';