Skip to content

Commit

Permalink
UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Sep 23, 2024
1 parent b208e72 commit 3b10f80
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 13 deletions.
5 changes: 2 additions & 3 deletions packages/nextjs/app/create/_components/MetadataForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ export const MetadataForm: React.FC<MetadataFormProps> = ({
</div>

<div className="flex flex-row gap-2 my-4 items-center">
<strong>
Symbol <span className="text-red-500">*</span>
</strong>{" "}
<strong>Symbol</strong>
<span className="text-red-500">*</span>
<InputBase placeholder="PW" value={collectionSymbol} onChange={setCollectionSymbol} />
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Collectible extends Partial<NFTMetaData> {
maxTokenId?: number;
}

export const Marketplace = () => {
export const Explore = () => {
const { address: isConnected, isConnecting } = useAccount();
const [listedCollectibles, setListedCollectibles] = useState<Collectible[]>([]);
const [activeTab, setActiveTab] = useState("newest");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// CollectiblesList.tsx
import { Collectible } from "../Marketplace";
import { Collectible } from "../Explore";
import { NFTCard } from "./NFTCard";

export const CollectiblesList = ({ filteredCollectibles }: { filteredCollectibles: Collectible[] }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Marketplace } from "./Marketplace";
import { Explore } from "./Explore";
import type { NextPage } from "next";
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";

export const metadata = getMetadata({
title: "Marketplace",
title: "Explore",
description: "Built with 🏗 Scaffold-ETH 2",
});

const MarketplacePage: NextPage = () => {
const ExplorePage: NextPage = () => {
return (
<>
<Marketplace />
<Explore />
</>
);
};

export default MarketplacePage;
export default ExplorePage;
6 changes: 3 additions & 3 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Marketplace from "./marketplace/page";
import Explore from "./explore/page";
import type { NextPage } from "next";
import { getMetadata } from "~~/utils/scaffold-eth/getMetadata";

export const metadata = getMetadata({
title: "Marketplace | DARTE",
title: "Explore | DARTE",
description: "Built with 🏗 Scaffold-ETH 2",
});

const Home: NextPage = () => {
return (
<>
<Marketplace />
<Explore />
</>
);
};
Expand Down

0 comments on commit 3b10f80

Please sign in to comment.