Moves identicon svg to TS
This commit is contained in:
parent
347f542ac0
commit
e76f603233
9 changed files with 111 additions and 129 deletions
21
ts/components/IdenticonSVG.stories.tsx
Normal file
21
ts/components/IdenticonSVG.stories.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { storiesOf } from '@storybook/react';
|
||||
|
||||
import { IdenticonSVG } from './IdenticonSVG';
|
||||
import { AvatarColorMap } from '../types/Colors';
|
||||
|
||||
const story = storiesOf('Components/IdenticonSVG', module);
|
||||
|
||||
AvatarColorMap.forEach((value, key) =>
|
||||
story.add(key, () => (
|
||||
<IdenticonSVG
|
||||
backgroundColor={value.bg}
|
||||
content="HI"
|
||||
foregroundColor={value.fg}
|
||||
/>
|
||||
))
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue