Skip to content

Commit

Permalink
Use this to test PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-akamai committed Dec 13, 2023
1 parent 427c874 commit 706e589
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/manager/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ REACT_APP_APP_ROOT='http://localhost:3000'

REACT_APP_LKE_HIGH_AVAILABILITY_PRICE='60'

REACT_APP_PROXY_PAT='[Add another accounts PAT here]'

##################################
# Optional:
##################################
Expand Down
20 changes: 20 additions & 0 deletions packages/manager/src/features/TopMenu/UserMenu/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import KeyboardArrowUp from '@mui/icons-material/KeyboardArrowUp';
import { Theme, styled, useMediaQuery } from '@mui/material';
import Popover from '@mui/material/Popover';
import Grid from '@mui/material/Unstable_Grid2';
import { AxiosHeaders } from 'axios';
import * as React from 'react';

import { Box } from 'src/components/Box';
Expand All @@ -15,6 +16,7 @@ import { Stack } from 'src/components/Stack';
import { Tooltip } from 'src/components/Tooltip';
import { Typography } from 'src/components/Typography';
import { useAccountManagement } from 'src/hooks/useAccountManagement';
import { useProfile } from 'src/queries/profile';
import { useGrants } from 'src/queries/profile';

interface MenuLink {
Expand Down Expand Up @@ -48,6 +50,24 @@ export const UserMenu = React.memo(() => {
profile,
} = useAccountManagement();

const config = {
headers: {
Authorization: `Bearer ${import.meta.env.REACT_APP_PROXY_PAT}`,
},
};
const headers = new AxiosHeaders(config.headers);

const { data: currentProfile } = useProfile();
console.log(

Check failure on line 61 in packages/manager/src/features/TopMenu/UserMenu/UserMenu.tsx

View workflow job for this annotation

GitHub Actions / lint (linode-manager)

Unexpected console statement
'Proxy Account: ',
currentProfile?.username ?? 'No username found'
);
const { data: parentProfile } = useProfile(undefined, { headers });
console.log(

Check failure on line 66 in packages/manager/src/features/TopMenu/UserMenu/UserMenu.tsx

View workflow job for this annotation

GitHub Actions / lint (linode-manager)

Unexpected console statement
'Proxy Account: ',
parentProfile?.username ?? 'No username found'
);

const matchesSmDown = useMediaQuery((theme: Theme) =>
theme.breakpoints.down('sm')
);
Expand Down

0 comments on commit 706e589

Please sign in to comment.