-
Notifications
You must be signed in to change notification settings - Fork 1
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
24 user profile #60
24 user profile #60
Conversation
…g on project name navigates back to home
FOR TESTING :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<AppBar position="relative"> | ||
<Toolbar> | ||
<Link to="/home-page"> | ||
<Typography variant="h6" className={classes.customLink} style={{ textDecoration: 'none' }}> | ||
SocialDistribution | ||
</Typography> | ||
</Link> | ||
</Toolbar> | ||
</AppBar> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to do for this PR: I see that home page and profile page have different app bars, I'll add an issue to create a header component to have them be consistent.
def get(self, request, author_id): | ||
# get the author data whose id is AUTHOR_ID | ||
author = Author.objects.get(id=author_id) | ||
serializer = AuthorSerializer(author) | ||
return Response(serializer.data, status=status.HTTP_200_OK) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be done later on but the api needs to have an updated serializer. On the project reqs, a call to a single author has "type", has an id url for the id field instead of the uuid, etc..
I don't think it's needed for this profile page, so this can be updated as we work more on these api calls.
React.App.-.Google.Chrome.2023-10-24.14-43-02.mp4