Skip to content

Commit

Permalink
feat: use static image url on Header component
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Dec 2, 2022
1 parent f3189bb commit 1432d9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React from 'react'
import Link from 'next/link'

interface Props {
imageUrl: string
title: string
}

export const Header: React.FC<Props> = ({ imageUrl, title }) => {
export const Header: React.FC<Props> = ({ title }) => {
return (
<header className="flex justify-between items-center mb-24">
<div className="flex items-center gap-5">
<img src={imageUrl} className="w-12 h-12 rounded-full text-gray-600" />
<img
src="https://github.com/mateusfg7.png"
className="w-12 h-12 rounded-full text-gray-600"
/>
<h2>brain</h2>
<span className="text-xs">/</span>
<h1 className="text-xl font-bold">{title}</h1>
Expand Down

0 comments on commit 1432d9d

Please sign in to comment.