Problem
Coming from here, we have a few wrappers we use in Workspace pages, i.e. WorkspacePageWithSections, AdminPolicyAccessOrNotFoundWrapper and PaidPolicyAccessOrNotFoundWrapper. We should standardize on using a single one for all our pages.
Those wrappers also break the not-found views.
Going to e.g. https://staging.new.expensify.com/workspace/dssaddssdaads/categories` we see duplicated not found (that's what is the scope of the other issue) and after pressing the back button we see another ones...
Why is this important
DRYs code and makes it more maintainable
Solution
Investigate how to combine them and update all usages.
cc @kosmydel
Issue Owner
Current Issue Owner: @JmillsExpensify
Problem
Coming from here, we have a few wrappers we use in Workspace pages, i.e.
WorkspacePageWithSections,AdminPolicyAccessOrNotFoundWrapperandPaidPolicyAccessOrNotFoundWrapper. We should standardize on using a single one for all our pages.Those wrappers also break the not-found views.
Going to e.g. https://staging.new.expensify.com/workspace/dssaddssdaads/categories` we see duplicated not found (that's what is the scope of the other issue) and after pressing the back button we see another ones...
Why is this important
DRYs code and makes it more maintainable
Solution
Investigate how to combine them and update all usages.
cc @kosmydel
Issue Owner
Current Issue Owner: @JmillsExpensify