diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 77a7f96..17f2dbc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,6 +29,15 @@ jobs: name: Release if: ${{ github.ref == 'refs/heads/master' }} runs-on: ubuntu-latest + env: + REACT_APP_STORAGE_BUCKET: ${{ secrets.REACT_APP_STORAGE_BUCKET }} + REACT_APP_PROJECT_ID: ${{ secrets.REACT_APP_PROJECT_ID }} + REACT_APP_MSG_SENDER_ID: ${{ secrets.REACT_APP_MSG_SENDER_ID }} + REACT_APP_MEASUREMENT_ID: ${{ secrets.REACT_APP_MEASUREMENT_ID }} + REACT_APP_DB_URL: ${{ secrets.REACT_APP_DB_URL }} + REACT_APP_AUTH_DOMAIN: ${{ secrets.REACT_APP_AUTH_DOMAIN }} + REACT_APP_APP_ID: ${{ secrets.REACT_APP_APP_ID }} + REACT_APP_API_KEY: ${{ secrets.REACT_APP_API_KEY }} steps: - uses: actions/checkout@v2 - name: Install dependencies diff --git a/src/components/DevProfile.tsx b/src/components/DevProfile.tsx index 44c65d6..7006c06 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'; -import {DevSummary} from '../models/Dev'; +// Typing +import {DevSummary, getDescription} from '../models/Dev'; +import Routes from '../constants/routes'; /** * Present a dev profile succintly. Redirect to dev profile on click. @@ -10,23 +15,24 @@ import {DevSummary} from '../models/Dev'; const DevProfile: FC = ({ id, displayName, - picture, - description, + avatarUrl, + status, + company, location, skills, }) => (
- {displayName} + {displayName}

{displayName}

-

{description}

+

{getDescription(status, company)}

{location}

- + View Profile - +