clean up things

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-11-24 22:40:15 +03:00
committed by Daniel Hutzel
parent 6454019713
commit 58af1879f7
24 changed files with 256 additions and 278 deletions

View File

@@ -13,15 +13,4 @@ const withRestrictions = (Component, isUserMeetRestrictions) => {
};
};
const withRestrictedSection = (Component, isUserMeetRestrictions) => {
return (props) => {
const { user, invoicedItems } = useAppState();
return (
isUserMeetRestrictions({ user, invoicedItems }) && (
<Component {...props} />
)
);
};
};
export { withRestrictions, withRestrictedSection };
export { withRestrictions };