Skip to content

Commit

Permalink
Merge pull request #91 from saishankarmanugula/develop
Browse files Browse the repository at this point in the history
changed route of individual member page from /members/user to /user
  • Loading branch information
sumitd94 committed Jan 7, 2021
2 parents 2e62f3b + 8f9e063 commit b60d110
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 85 deletions.
4 changes: 2 additions & 2 deletions components/member-list-item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const PreviewMember = ({ memberDetails }) => {
<Link
prefetch={false}
href={{
pathname: '/members/[id]',
pathname: '/[id]',
query: {
first_name: `${memberDetails ? memberDetails.first_name : ''}`,
last_name: `${memberDetails ? memberDetails.last_name : ''}`
}
}}
as={`/members/${id}`}
as={`/${id}`}
key={id}>
<a href={`/members/${id}`}>
<img src={memberDetails.img_url} className={classNames.imgContainer} alt={id} />
Expand Down
111 changes: 29 additions & 82 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pages/members/[id]/index.js → pages/[id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fetch from 'cross-fetch';
import Profile from 'components/member-profile';
import NotFound from 'components/not-found-page';
import Layout from 'components/layout';
import { CACHE_MAX_AGE } from '../../../constants/cache-max-age.js';
import { CACHE_MAX_AGE } from '../../constants/cache-max-age.js';

const MemberProfile = ({ imageLink, data, errorMessage }) => {
if (errorMessage) {
Expand Down

0 comments on commit b60d110

Please sign in to comment.