Improved windows notifications

This commit is contained in:
Scott Nonnenberg 2023-08-01 09:06:29 -07:00 committed by GitHub
parent 584e39d569
commit 40c21b1666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 1227 additions and 151 deletions

View file

@ -3,21 +3,36 @@
import React from 'react';
import { IdenticonSVG } from './IdenticonSVG';
import { IdenticonSVGForContact, IdenticonSVGForGroup } from './IdenticonSVG';
import { AvatarColorMap } from '../types/Colors';
export default {
title: 'Components/IdenticonSVG',
};
export function AllColors(): JSX.Element {
export function AllColorsForContact(): JSX.Element {
const stories: Array<JSX.Element> = [];
AvatarColorMap.forEach(value =>
stories.push(
<IdenticonSVG
<IdenticonSVGForContact
backgroundColor={value.bg}
text="HI"
foregroundColor={value.fg}
/>
)
);
return <>{stories}</>;
}
export function AllColorsForGroup(): JSX.Element {
const stories: Array<JSX.Element> = [];
AvatarColorMap.forEach(value =>
stories.push(
<IdenticonSVGForGroup
backgroundColor={value.bg}
content="HI"
foregroundColor={value.fg}
/>
)