Skip to content

Commit

Permalink
Merge pull request #2 from LMacPhail/implement-ui
Browse files Browse the repository at this point in the history
fix build warnings
  • Loading branch information
LMacPhail authored Nov 1, 2023
2 parents 50ec768 + 21897ae commit 4d34798
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
9 changes: 2 additions & 7 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import { ProjectTitle } from "./ProjectTitle";

export const Header: React.FC = () => {
return (
Expand All @@ -8,13 +9,7 @@ export const Header: React.FC = () => {
aria-label="Global"
>
<div className="mr-5 md:mr-0 md:hidden">
<a
className="flex-none text-xl font-semibold dark:text-white"
href="#"
aria-label="Brand"
>
Labour MPs
</a>
<ProjectTitle />
</div>

<div className="w-full flex items-center justify-end ml-auto sm:justify-between sm:gap-x-3 sm:order-3">
Expand Down
7 changes: 3 additions & 4 deletions src/components/ProjectTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React from "react";

export const ProjectTitle = () => (
<a
export const ProjectTitle: React.FC = () => (
<div
className="flex-none text-xl font-semibold dark:text-white"
href="#"
aria-label="Brand"
>
Labour MPs
</a>
</div>
);
2 changes: 0 additions & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { ProjectTitle } from "./ProjectTitle";
import { Filters } from "./filters/Filters";

export const Sidebar: React.FC<{ children: React.ReactNode }> = ({
children,
Expand Down

0 comments on commit 4d34798

Please sign in to comment.