From 00aa71e9eee53a43eccd38cfd27620f9e6a5433f Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Sun, 17 May 2020 10:49:05 +0200 Subject: [PATCH] switch picture field to avatarUrl --- src/components/DevProfile.tsx | 13 +++++++++---- src/models/Dev.ts | 10 +++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/DevProfile.tsx b/src/components/DevProfile.tsx index e122c75..5050e5b 100644 --- a/src/components/DevProfile.tsx +++ b/src/components/DevProfile.tsx @@ -1,7 +1,12 @@ import React, {FC} from 'react'; +// Routing +import {Link} from 'react-router-dom'; +// Style import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faCheck} from '@fortawesome/free-solid-svg-icons'; +// Typing import {DevSummary} from '../models/Dev'; +import Routes from '../constants/routes'; /** * Present a dev profile succintly. Redirect to dev profile on click. @@ -10,20 +15,20 @@ import {DevSummary} from '../models/Dev'; const DevProfile: FC = ({ id, displayName, - picture, + avatarUrl, description, location, skills, }) => (
- {displayName} + {displayName}

{displayName}

{description}

{location}

- + View Profile - +
    {skills?.map((s, i) => ( diff --git a/src/models/Dev.ts b/src/models/Dev.ts index aeb0a43..50a290e 100644 --- a/src/models/Dev.ts +++ b/src/models/Dev.ts @@ -7,7 +7,7 @@ import Repo from '../types/Repo'; export interface DevSummary { id: string; displayName: string; - picture: string; + avatarUrl: string; description: string; location: string; skills: string[]; @@ -38,7 +38,7 @@ export const blankDev: Dev = { displayName: '', status: 'Developer', company: '', - picture: '', + avatarUrl: '', description: '', location: '', skills: [], @@ -66,7 +66,7 @@ export const dummyDev: Dev = { displayName: 'John Doe', status: 'Developer', company: 'Microsoft', - picture: + avatarUrl: 'https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?s=200', description: 'Developer at Microsoft', location: 'Seattle, WA', @@ -152,7 +152,7 @@ export const developers: DevSummary[] = [ { id: '0', displayName: 'John Doe', - picture: + avatarUrl: 'https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?s=200', description: 'Developer at Microsoft', location: 'Seattle, WA', @@ -161,7 +161,7 @@ export const developers: DevSummary[] = [ { id: '42', displayName: 'Ruidy Nemausat', - picture: + avatarUrl: 'https://lh3.googleusercontent.com/a-/AOh14GhncH95MWKwPR3TRKy4eVd4n6w0-fobe4dhiam2xA', description: 'Fullstack Engineer at DESY', location: 'Hamburg, DE',