clean up things
This commit is contained in:
committed by
Daniel Hutzel
parent
6454019713
commit
58af1879f7
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user