Move About pages to within the UI

This commit is contained in:
Alex Gleason
2023-09-19 17:29:24 -05:00
parent f236c7b0a2
commit 804761fd09
7 changed files with 20 additions and 13 deletions

View File

@@ -134,6 +134,7 @@ import {
Announcements,
EditGroup,
FollowedTags,
AboutPage,
} from './util/async-components';
import GlobalHotkeys from './util/global-hotkeys';
import { WrappedRoute } from './util/react-router-helpers';
@@ -350,6 +351,8 @@ const SwitchingColumnsArea: React.FC<ISwitchingColumnsArea> = ({ children }) =>
<WrappedRoute path='/share' page={DefaultPage} component={Share} content={children} exact />
<WrappedRoute path='/about/:slug?' page={DefaultPage} component={AboutPage} publicRoute exact />
<WrappedRoute page={EmptyPage} component={GenericNotFound} content={children} />
</Switch>
);

View File

@@ -1,3 +1,7 @@
export function AboutPage() {
return import('../../about');
}
export function EmojiPicker() {
return import('../../emoji/components/emoji-picker');
}