Apply new eslint rules; default to prettier for styling

This commit is contained in:
DaneEveritt 2022-06-26 15:13:52 -04:00
parent f22cce8881
commit dc84af9937
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
218 changed files with 3876 additions and 3564 deletions

View file

@ -8,22 +8,22 @@ interface Props {
}
export default ({ type, className }: Props) => {
const [ Component, styles ] = (function (): [ (props: React.ComponentProps<'svg'>) => JSX.Element, string ] {
const [Component, styles] = (function (): [(props: React.ComponentProps<'svg'>) => JSX.Element, string] {
switch (type) {
case 'danger':
return [ ShieldExclamationIcon, 'bg-red-500 text-red-50' ];
return [ShieldExclamationIcon, 'bg-red-500 text-red-50'];
case 'warning':
return [ ExclamationIcon, 'bg-yellow-600 text-yellow-50' ];
return [ExclamationIcon, 'bg-yellow-600 text-yellow-50'];
case 'success':
return [ CheckIcon, 'bg-green-600 text-green-50' ];
return [CheckIcon, 'bg-green-600 text-green-50'];
case 'info':
return [ InformationCircleIcon, 'bg-primary-500 text-primary-50' ];
return [InformationCircleIcon, 'bg-primary-500 text-primary-50'];
}
})();
return (
<div className={classNames('flex items-center justify-center w-10 h-10 rounded-full', styles, className)}>
<Component className={'w-6 h-6'}/>
<Component className={'w-6 h-6'} />
</div>
);
};