-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from barrymun/feature/search
Feature - Implement basic search functionality v2
- Loading branch information
Showing
23 changed files
with
1,079 additions
and
321 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Route, Routes } from "react-router-dom"; | ||
|
||
import App from "@components/App"; | ||
import SnippetList from "@components/SnippetList"; | ||
|
||
const AppRouter = () => { | ||
return ( | ||
<Routes> | ||
<Route element={<App />}> | ||
<Route path="/" element={<SnippetList />} /> | ||
<Route path="/:languageName" element={<SnippetList />} /> | ||
<Route | ||
path="/:languageName/:subLanguageName/:categoryName" | ||
element={<SnippetList />} | ||
/> | ||
</Route> | ||
</Routes> | ||
); | ||
}; | ||
|
||
export default AppRouter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { FC } from "react"; | ||
|
||
import { AppProvider } from "@contexts/AppContext"; | ||
|
||
import Container from "./Container"; | ||
|
||
interface AppProps {} | ||
|
||
const App: FC<AppProps> = () => { | ||
return ( | ||
<AppProvider> | ||
<Container /> | ||
</AppProvider> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.