Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjiang9142 committed Jun 26, 2024
1 parent 7d0ed80 commit 265f717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion client/src/pages/ballotInfo/[candidate].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export default function Candidate() {
if (response.ok) {
const data = (await response.json()).data;
setAllCandidateData(data)
console.log(data)
}


} catch (e) {
console.log(e);
}
Expand Down Expand Up @@ -136,6 +139,9 @@ export default function Candidate() {
}, {});
setQuestionsAndAnswers(qaMap);
}



}, [candidateData]);


Expand Down Expand Up @@ -169,7 +175,7 @@ export default function Candidate() {
<div
className="bg-center bg-no-repeat bg-cover rounded-full h-64 w-64 lg:h-80 lg:w-80 mx-6"
style={{
backgroundImage: `url(https://pitne-voter-app-express-production.up.railway.app/${candidateData?.Headshot.data.attributes.url})`,
backgroundImage: `url(https://pitne-voter-app-production.up.railway.app${candidateData?.Headshot.data.attributes.url})`,
}}
></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const PeopleCard = ({ name, affiliation, picture, link }: Props) => {
}}>
<CardActionArea className='flex flex-col items-center p-4'>
<Stack direction="row" spacing={2} className='flex justify-center items-center'>
<Avatar alt={name} src={`http://localhost:1337${picture}`} sx={{ width: 128, height: 128 }} />
<Avatar alt={name} src={`https://pitne-voter-app-production.up.railway.app${picture}`} sx={{ width: 128, height: 128 }} />
</Stack>
<CardContent className='text-center'>
<Typography gutterBottom variant="h5" component="div" color="text.primary">
Expand Down

0 comments on commit 265f717

Please sign in to comment.