Put Typescript in "strict" mode, fix or ignore errors

This commit is contained in:
Alex Gleason
2022-03-24 14:27:27 -05:00
parent 84d7d2ee38
commit 2940a3ff4d
28 changed files with 177 additions and 114 deletions

View File

@ -35,11 +35,13 @@ const Stack: React.FC<IStack> = (props) => {
<div
{...filteredProps}
className={classNames('flex flex-col', {
// @ts-ignore
[spaces[space]]: typeof space !== 'undefined',
// @ts-ignore
[alignItemsOptions[alignItems]]: typeof alignItems !== 'undefined',
// @ts-ignore
[justifyContentOptions[justifyContent]]: typeof justifyContent !== 'undefined',
[className]: typeof className !== 'undefined',
})}
}, className)}
/>
);
};