-
Notifications
You must be signed in to change notification settings - Fork 1
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 #48 from wizelineacademy/H5-IntegrationP1P2
chore: fixed auth redirect on server components to check logged in se…
- Loading branch information
Showing
12 changed files
with
148 additions
and
111 deletions.
There are no files selected for viewing
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
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
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,23 @@ | ||
"use client"; | ||
import React from "react"; | ||
import { addCategory } from "@/app/actions/search"; | ||
|
||
const P2_NewCategory = () => { | ||
let newFeature = ""; | ||
return ( | ||
<div className="flex mt-5 w-full items-center justify-center "> | ||
<input | ||
name="" | ||
className="bg-black dark:bg-backgroundLight rounded-lg text-white dark:text-black text-base py-3 text-center" | ||
onChange={(e) => (newFeature = e.target.value)} | ||
// value={newFeature} | ||
></input> | ||
<button | ||
className="text-black dark:text-white text-4xl pl-4 pr-1" | ||
onClick={() => addCategory(newFeature)} | ||
></button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default P2_NewCategory; |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export const SEARCH_VALUES_KEY = "searchValues"; | ||
export const ORIGINAL_SEARCH_VALUES_KEY = "originalSearchValues"; | ||
export const CATEGORIES_KEY = "categories"; | ||
export const ORIGINAL_CATEGORIES_KEY = "originalCategories"; | ||
export const CURRENT_QUERY_KEY = "currentQuery"; |
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.