Fix EmptyPage being an actual empty page
This commit is contained in:
parent
ecc0897ee6
commit
f0cc9ed4d4
1 changed files with 2 additions and 3 deletions
|
@ -25,6 +25,7 @@ import { useAppDispatch, useAppSelector, useOwnAccount, useSoapboxConfig, useFea
|
|||
import AdminPage from 'soapbox/pages/admin-page';
|
||||
import ChatsPage from 'soapbox/pages/chats-page';
|
||||
import DefaultPage from 'soapbox/pages/default-page';
|
||||
import EmptyPage from 'soapbox/pages/empty-page';
|
||||
import EventPage from 'soapbox/pages/event-page';
|
||||
import EventsPage from 'soapbox/pages/events-page';
|
||||
import GroupPage from 'soapbox/pages/group-page';
|
||||
|
@ -159,8 +160,6 @@ const EditGroupSlug = withHoc(EditGroup as any, GroupLookupHoc);
|
|||
const GroupBlockedMembersSlug = withHoc(GroupBlockedMembers as any, GroupLookupHoc);
|
||||
const GroupMembershipRequestsSlug = withHoc(GroupMembershipRequests as any, GroupLookupHoc);
|
||||
|
||||
const EmptyPage = HomePage;
|
||||
|
||||
interface ISwitchingColumnsArea {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
@ -366,7 +365,7 @@ const SwitchingColumnsArea: React.FC<ISwitchingColumnsArea> = ({ children }) =>
|
|||
<WrappedRoute path='/about/:slug?' page={DefaultPage} component={AboutPage} publicRoute exact />
|
||||
|
||||
{(features.accountCreation && instance.registrations) && (
|
||||
<WrappedRoute path='/signup' page={DefaultPage} component={RegistrationPage} publicRoute exact />
|
||||
<WrappedRoute path='/signup' page={EmptyPage} component={RegistrationPage} publicRoute exact />
|
||||
)}
|
||||
|
||||
<WrappedRoute path='/login/external' page={DefaultPage} component={ExternalLogin} publicRoute exact />
|
||||
|
|
Loading…
Reference in a new issue