address pr comments
This commit is contained in:
parent
ea89acf44e
commit
a3951016d0
@ -4,7 +4,7 @@ import { getVariantBackground } from '../../utils/intent';
|
||||
|
||||
export const Indicator = ({ variant }: { variant?: Variant }) => {
|
||||
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)
|
||||
);
|
||||
return <div className={names} />;
|
||||
|
@ -28,7 +28,7 @@ export const getIntentShadow = (intent?: Intent) => {
|
||||
};
|
||||
|
||||
export const getVariantBackground = (variant?: Variant) => {
|
||||
return classNames('shadow-callout', {
|
||||
return classNames({
|
||||
'bg-intent-success text-black': variant === Variant.Success,
|
||||
'bg-intent-danger text-white': variant === Variant.Danger,
|
||||
'bg-intent-warning text-black': variant === Variant.Warning,
|
||||
|
Loading…
Reference in New Issue
Block a user