Skip to content

Commit

Permalink
Allow members to be part of multiple circles
Browse files Browse the repository at this point in the history
  • Loading branch information
vontell committed Jan 24, 2025
1 parent 08b06b7 commit 28466e0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/ContributorsList/ContributorsListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';

const contributorToCircleName = contributor => {
if (contributor.civic_member) return 'Civic';
if (contributor.data_member) return 'Data';
if (contributor.design_member) return 'Design';
if (contributor.development_member) return 'Development';
if (contributor.project_management_member) return 'Project Management';
return 'Other';
const circles = [];
if (contributor.civic_member) circles.push('Civic');
if (contributor.data_member) circles.push('Data');
if (contributor.design_member) circles.push('Design');
if (contributor.development_member) circles.push('Development');
if (contributor.project_management_member) circles.push('Project Management');
return circles.join(', ');
};

const ContributorsListItem = ({ contributor }) => (
Expand Down

0 comments on commit 28466e0

Please sign in to comment.