Skip to content

Commit 56d25f7

Browse files
committed
fix conflicting order warnings
software issues keep getting dumber every minute facebook/create-react-app#5372 (comment) Signed-off-by: rishichawda <[email protected]>
1 parent 9a4d620 commit 56d25f7

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/components/articles/search/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const Search: React.FC<SearchProps> = ({ searchQuery, setSearchQuery }) => {
1010
return (
1111
<form
1212
id="articles-search-bar"
13-
action="javascript:void(0);"
1413
method="get"
1514
autoComplete="off"
1615
className="border-4 border-gray-200 focus-within:border-gray-300 dark:border-slate-600 dark:focus-within:border-slate-500 w-full sm:w-fit"
@@ -26,9 +25,6 @@ const Search: React.FC<SearchProps> = ({ searchQuery, setSearchQuery }) => {
2625
name="articles-search-bar"
2726
className="placeholder:text-gray-400 block bg-gray-200 dark:bg-slate-600 dark:placeholder:text-slate-300"
2827
/>
29-
<button className="hide" type="submit">
30-
Search
31-
</button>
3228
</form>
3329
);
3430
};

src/components/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22

3-
import Footer from "./footer";
43
import Navbar from "./navbar";
4+
import Footer from "./footer";
55

66
const Layout: React.FC<LayoutProps> = ({ children, showScrollProgress }) => {
77
return (

src/components/navbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import React from "react";
55

66
import { useSiteMetadata } from "../../hooks/use-site-metadata";
77
import Logo from "../logo";
8-
import ThemeToggle from "../themeToggle";
98
import ScrollProgress from "./scrollProgress";
9+
import ThemeToggle from "../themeToggle";
1010

1111
type NavbarProps = {
1212
showScrollProgress?: boolean;

src/pages/articles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { m, LazyMotion, domAnimation } from "framer-motion";
44
import * as React from "react";
55
import { useFlexSearch } from "react-use-flexsearch";
66

7-
import ArticlesList from "../components/articles/list";
8-
import Search from "../components/articles/search";
97
import Layout from "../components/layout";
108
import SEO from "../components/seo";
119
import Tag from "../components/tag";
10+
import ArticlesList from "../components/articles/list";
11+
import Search from "../components/articles/search";
1212
import {
1313
filterByTags,
1414
transformFlexSearchData,

0 commit comments

Comments
 (0)