Layout: standalone fixes

next
Alex Gleason 2 years ago
parent 8134b5d016
commit 3d0e9200c2
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -28,6 +28,7 @@ import RemoteInstancePage from 'soapbox/pages/remote_instance_page';
import StatusPage from 'soapbox/pages/status_page';
import { getAccessToken } from 'soapbox/utils/auth';
import { getVapidKey } from 'soapbox/utils/auth';
import { isStandalone } from 'soapbox/utils/state';
import { fetchFollowRequests } from '../../actions/accounts';
import { fetchReports, fetchUsers, fetchConfig } from '../../actions/admin';
@ -346,6 +347,7 @@ const UI: React.FC = ({ children }) => {
const dropdownMenuIsOpen = useAppSelector(state => state.dropdown_menu.get('openId') !== null);
const accessToken = useAppSelector(state => getAccessToken(state));
const streamingUrl = useAppSelector(state => state.instance.urls.get('streaming_api'));
const standalone = useAppSelector(isStandalone);
const handleDragEnter = (e: DragEvent) => {
e.preventDefault();
@ -651,7 +653,7 @@ const UI: React.FC = ({ children }) => {
<Layout>
<Layout.Sidebar>
<SidebarNavigation />
{!standalone && <SidebarNavigation />}
</Layout.Sidebar>
<SwitchingColumnsArea>

@ -8,11 +8,13 @@ import {
SignUpPanel,
} from 'soapbox/features/ui/util/async-components';
import { useAppSelector, useFeatures } from 'soapbox/hooks';
import { isStandalone } from 'soapbox/utils/state';
import { Layout } from '../components/ui';
const DefaultPage: React.FC = ({ children }) => {
const me = useAppSelector(state => state.me);
const standalone = useAppSelector(isStandalone);
const features = useFeatures();
return (
@ -22,7 +24,7 @@ const DefaultPage: React.FC = ({ children }) => {
</Layout.Main>
<Layout.Aside>
{!me && (
{!me && !standalone && (
<BundleContainer fetchComponent={SignUpPanel}>
{Component => <Component key='sign-up-panel' />}
</BundleContainer>

Loading…
Cancel
Save