Skip to content

Commit

Permalink
Merge pull request #23 from ShubhamMewara/issue-22
Browse files Browse the repository at this point in the history
Fixes #22: Added Home button in Appbar
  • Loading branch information
hkirat committed Feb 1, 2024
2 parents 654d140 + 37939ab commit e90e02a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ui/src/BlogAppbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ export const BlogAppbar = ({ problem, track }: {problem: Problem; track: Track})
}, [track, problem]);

return <div className="mt-2 ml-2 mr-2 flex justify-between mb-2">
<div className="flex-1 flex justify-center flex-col ml-2">
<div className="text-white text-2xl">
<Link href={"/"}>
DailyCode
</Link>
</div>
<div className="flex-1 flex justify-center items-center ml-2">
{problem.title} ({problemIndex + 1} / {track.problems.length})
</div>
<div className="flex flex-1 flex-row-reverse">
<div className="flex flex-row-reverse">
<Link prefetch={true} href={problemIndex + 1 === track.problems.length ? `/tracks/${track.id}` : `/tracks/${track.id}/${track.problems[problemIndex + 1]}`}>
<Button variant="outline">Next
<div className="pl-2">
Expand Down

0 comments on commit e90e02a

Please sign in to comment.