Skip to content

Commit

Permalink
Merge pull request #1013 from t3n/user-menu
Browse files Browse the repository at this point in the history
feat: ✨ adjust user-menu to fit new ssb
  • Loading branch information
birterohden authored Jan 15, 2025
2 parents 0f788c9 + f53c43d commit 5836a4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions packages/components/src/UserMenu/UserMenu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ export interface UserMenuProps {
userEmail?: string;
loginLink?: string;
logoutLink?: string;
proMembershipLink?: string;
aboLink?: string;
readingListLink?: string;
accountLink?: string;
isPlusUser?: boolean;
plusLink?: string;
isProMember?: boolean;
light?: boolean;
items?: ReactNode[];
Expand Down
14 changes: 6 additions & 8 deletions packages/components/src/UserMenu/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ export interface UserMenuProps {
userEmail?: string;
loginLink?: string;
logoutLink?: string;
proMembershipLink?: string;
aboLink?: string;
readingListLink?: string;
accountLink?: string;
isPlusUser?: boolean;
plusLink?: string;
isProMember?: boolean;
light?: boolean;
items?: ReactNode[];
Expand Down Expand Up @@ -225,10 +224,9 @@ const UserMenu: React.FC<UserMenuProps> = ({
loginLink = '/account/login',
logoutLink = '/account/logout',
isPlusUser = false,
plusLink = '/account/plus',
proMembershipLink = '/account/pro',
aboLink = '/account/',
readingListLink = '/account/merkliste',
accountLink = '/account/',
accountLink = '/account/edit',
light,
}) => {
return userEmail ? (
Expand Down Expand Up @@ -259,7 +257,7 @@ const UserMenu: React.FC<UserMenuProps> = ({
<>
<UserMenuListDivider />
<UserMenuListItem>
<a href={plusLink}>
<a href={aboLink}>
<T3nPlus
width="22px"
height="18px"
Expand All @@ -274,7 +272,7 @@ const UserMenu: React.FC<UserMenuProps> = ({
<>
<UserMenuListDivider />
<UserMenuListItem>
<a href={proMembershipLink}>
<a href={aboLink}>
<T3nPro width="36px" height="18px" style={{ marginRight: 8 }} />
Pro-Membership
</a>
Expand Down Expand Up @@ -302,7 +300,7 @@ const UserMenu: React.FC<UserMenuProps> = ({
height="24"
style={{ marginRight: 4 }}
/>
Konto
Account
</a>
</UserMenuListItem>
<UserMenuListDivider />
Expand Down

0 comments on commit 5836a4d

Please sign in to comment.