Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWC-7172: SRC UserProfileLinks updates on mobile #1468

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import IconSvg, { IconName } from '../IconSvg/IconSvg'
import UserChallenges from './UserChallenges'
import UserProjects from './UserProjects'
import UserTeams from './UserTeams'
import { Box } from '@mui/system'

type UserProfileLinkConfig = {
name: 'Projects' | 'Teams' | 'Challenges'
Expand Down Expand Up @@ -50,12 +51,25 @@ export function UserProfileLinks({ userId }: UserProfileLinksProps) {
{userProfile && <>{userProfile?.userName}&apos;s Items</>}
{!userProfile && <Skeleton width="75%" />}
</Typography>
<div className="Tabs">
<Box
className="Tabs"
sx={theme => ({
[theme.breakpoints.down('sm')]: {
flexDirection: 'column',
gap: '8px',
},
})}
>
{userProfileLinksConfig.map(config => {
return (
<div
<Box
className="Tab"
role="tab"
sx={theme => ({
[theme.breakpoints.down('sm')]: {
minHeight: '45px',
},
})}
key={config.name}
onClick={e => {
e.stopPropagation()
Expand All @@ -66,10 +80,10 @@ export function UserProfileLinks({ userId }: UserProfileLinksProps) {
<Typography variant="buttonLink">
<IconSvg icon={config.iconName} /> {config.name}
</Typography>
</div>
</Box>
)
})}
</div>
</Box>
<div className="TabContent">
<SynapseErrorBoundary>
{
Expand Down
Loading