Revert "Unify workspace dropdowns; Update layouts (#458)"
This reverts commit 4bc8448a1d.
This commit is contained in:
@@ -8,6 +8,10 @@ import { JWTUserData } from '@kit/supabase/types';
|
||||
import featuresFlagConfig from '~/config/feature-flags.config';
|
||||
import pathsConfig from '~/config/paths.config';
|
||||
|
||||
const paths = {
|
||||
home: pathsConfig.app.home,
|
||||
};
|
||||
|
||||
const features = {
|
||||
enableThemeToggle: featuresFlagConfig.enableThemeToggle,
|
||||
};
|
||||
@@ -15,7 +19,6 @@ const features = {
|
||||
export function ProfileAccountDropdownContainer(props: {
|
||||
user?: JWTUserData | null;
|
||||
showProfileName?: boolean;
|
||||
accountSlug?: string;
|
||||
|
||||
account?: {
|
||||
id: string | null;
|
||||
@@ -31,22 +34,10 @@ export function ProfileAccountDropdownContainer(props: {
|
||||
return null;
|
||||
}
|
||||
|
||||
const homePath =
|
||||
featuresFlagConfig.enableTeamsOnly && props.accountSlug
|
||||
? pathsConfig.app.accountHome.replace('[account]', props.accountSlug)
|
||||
: pathsConfig.app.home;
|
||||
|
||||
const profileSettingsPath = props.accountSlug
|
||||
? pathsConfig.app.accountProfileSettings.replace(
|
||||
'[account]',
|
||||
props.accountSlug,
|
||||
)
|
||||
: pathsConfig.app.personalAccountSettings;
|
||||
|
||||
return (
|
||||
<PersonalAccountDropdown
|
||||
className={'w-full'}
|
||||
paths={{ home: homePath, profileSettings: profileSettingsPath }}
|
||||
paths={paths}
|
||||
features={features}
|
||||
user={userData}
|
||||
account={props.account}
|
||||
|
||||
Reference in New Issue
Block a user