Skip to content

Commit

Permalink
Added Link in History to GitHub usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush259 committed Jun 22, 2024
1 parent 1740ebb commit df9b795
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/History.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useContext } from 'react';
import { HistoryContext } from '../historyContext/HistoryContext.jsx';
import GoBackButton from './GoBackButton.jsx';
import { Link } from 'react-router-dom';

export default function History() {

Expand Down Expand Up @@ -51,7 +52,11 @@ export default function History() {
border-b border-slate-500 p-1
md:text-lg md:p-3'
>
<p className='w-full'><span className=''>{formatDate(history['id'])}</span><span className='pl-4 md:pl-7'>{history['name']}</span></p>
<Link
to={`/Find-GitHub-User/username/${history['name']}`}
>
<p className='w-full'><span className=''>{formatDate(history['id'])}</span><span className='pl-4 md:pl-7'>{history['name']}</span></p>
</Link>
<button
className='
hover:opacity-80 hover:bg-slate-900 p-2 rounded'
Expand Down

0 comments on commit df9b795

Please sign in to comment.