Avatar defaults and colors

This commit is contained in:
Josh Perez 2021-08-05 20:17:05 -04:00 committed by GitHub
parent a001882d58
commit 12d2b1bf7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
140 changed files with 4212 additions and 1084 deletions

View file

@ -0,0 +1,31 @@
import React from 'react';
import { ConfirmationDialog } from './ConfirmationDialog';
import { LocalizerType } from '../types/Util';
export type PropsType = {
i18n: LocalizerType;
onClose: () => unknown;
onDiscard: () => unknown;
};
export const ConfirmDiscardDialog = ({
i18n,
onClose,
onDiscard,
}: PropsType): JSX.Element | null => {
return (
<ConfirmationDialog
actions={[
{
action: onDiscard,
text: i18n('discard'),
style: 'negative',
},
]}
i18n={i18n}
onClose={onClose}
>
{i18n('ConfirmDiscardDialog--discard')}
</ConfirmationDialog>
);
};