Updated frontend-build to v12 (#962)

* feat: rebase previous frontend-build upgrade

* chore: make welcome message to default to empty
This commit is contained in:
Bilal Qamar
2023-01-30 22:20:07 +05:00
committed by GitHub
parent b500546e8d
commit b3d33667d4
164 changed files with 847 additions and 798 deletions

View File

@@ -8,7 +8,7 @@ import UnitIcon from './UnitIcon';
import CompleteIcon from './CompleteIcon';
import BookmarkFilledIcon from '../../bookmark/BookmarkFilledIcon';
function UnitButton({
const UnitButton = ({
onClick,
title,
contentType,
@@ -19,10 +19,10 @@ function UnitButton({
unitId,
className,
showTitle,
}) {
}) => {
const handleClick = useCallback(() => {
onClick(unitId);
});
}, [onClick, unitId]);
return (
<Button
@@ -45,7 +45,7 @@ function UnitButton({
) : null}
</Button>
);
}
};
UnitButton.propTypes = {
bookmarked: PropTypes.bool,