diff --git a/apps/create/src/App.tsx b/apps/create/src/App.tsx
index ee7d5c5..300cc93 100644
--- a/apps/create/src/App.tsx
+++ b/apps/create/src/App.tsx
@@ -18,15 +18,6 @@ const App = () => {
Party Create
-
- `party-nav-link text-sm font-medium ${isActive ? "active text-[#00d4ff]" : ""}`
- }
- >
- Search
-
{address && (
{
Tokens
- Party tokens you hold. Open to view, buy, or sell on this app.
+ Party tokens you hold. Open to view, buy, or sell on this app. Only ERC20 tokens are
+ included.
diff --git a/apps/create/src/pages/Search.tsx b/apps/create/src/pages/Search.tsx
index 94da5dc..4d20032 100644
--- a/apps/create/src/pages/Search.tsx
+++ b/apps/create/src/pages/Search.tsx
@@ -1,5 +1,5 @@
import { useForm } from "react-hook-form";
-import { useNavigate } from "react-router";
+import { Link, useNavigate } from "react-router";
import {
Button,
@@ -12,39 +12,106 @@ import {
Label
} from "@party-forever/ui";
-interface FormData {
+interface TokenFormData {
tokenAddress: string;
}
+interface ProfileFormData {
+ address: string;
+}
+
export const Search = () => {
const navigate = useNavigate();
- const { register, handleSubmit } = useForm();
+ const tokenForm = useForm();
+ const profileForm = useForm();
- const onSubmit = (data: FormData) => {
+ const onTokenSubmit = (data: TokenFormData) => {
navigate(`/${data.tokenAddress}`);
};
+ const onProfileSubmit = (data: ProfileFormData) => {
+ navigate(`/profile/${data.address.trim()}`);
+ };
+
return (
-
+
- View token
+ View ERC20 token
- Enter a token address to buy, sell, or trade on Uniswap (Base)
+ Enter an ERC20 token address to buy, sell, or trade on Uniswap (Base)
-
+