Moves identicon svg to TS

This commit is contained in:
Josh Perez 2021-08-24 20:17:51 -04:00 committed by GitHub
parent 347f542ac0
commit e76f603233
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 111 additions and 129 deletions

View 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}
/>
))
);