Skip to content

Commit b556fe3

Browse files
authored
refactor(next): simplify document view routing (#12777)
Simplifies document routing in the following ways: - Removes duplicative code blocks that made it easy to make changes to collections but not globals - Consolidates `CustomView`, `DefaultView`, and `ErrorView` into just `View` - Removes unnecessary `overrideDocPermissions` arg - Standardizes the 404 logic when the doc lacks read access - Fixes styling issue where `UnauthorizedView` is rendered without margins, e.g. when you lack permission to read versions but navigate to `/versions`
1 parent c04c257 commit b556fe3

File tree

5 files changed

+299
-415
lines changed

5 files changed

+299
-415
lines changed

0 commit comments

Comments
 (0)