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

@ -39,12 +39,14 @@ const HStack: React.FC<IHStack> = (props) => {
<div
{...filteredProps}
className={classNames('flex', {
// @ts-ignore
[alignItemsOptions[alignItems]]: typeof alignItems !== 'undefined',
// @ts-ignore
[justifyContentOptions[justifyContent]]: typeof justifyContent !== 'undefined',
// @ts-ignore
[spaces[space]]: typeof space !== 'undefined',
[className]: typeof className !== 'undefined',
'flex-grow': grow,
})}
}, className)}
/>
);
};