address pr comments

This commit is contained in:
Dexter 2022-04-01 14:55:48 +01:00
parent ea89acf44e
commit a3951016d0
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { getVariantBackground } from '../../utils/intent';
export const Indicator = ({ variant }: { variant?: Variant }) => { export const Indicator = ({ variant }: { variant?: Variant }) => {
const names = classNames( const names = classNames(
'inline-block w-8 h-8 mb-[0.15rem] mr-8 rounded', 'inline-block w-8 h-8 mb-2 mr-8 rounded',
getVariantBackground(variant) getVariantBackground(variant)
); );
return <div className={names} />; return <div className={names} />;

View File

@ -28,7 +28,7 @@ export const getIntentShadow = (intent?: Intent) => {
}; };
export const getVariantBackground = (variant?: Variant) => { export const getVariantBackground = (variant?: Variant) => {
return classNames('shadow-callout', { return classNames({
'bg-intent-success text-black': variant === Variant.Success, 'bg-intent-success text-black': variant === Variant.Success,
'bg-intent-danger text-white': variant === Variant.Danger, 'bg-intent-danger text-white': variant === Variant.Danger,
'bg-intent-warning text-black': variant === Variant.Warning, 'bg-intent-warning text-black': variant === Variant.Warning,