Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Mar 12, 2024
1 parent bc14937 commit c150578
Showing 1 changed file with 0 additions and 62 deletions.
62 changes: 0 additions & 62 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
"use client";

import { useState } from "react";
import { useRouter } from "next/navigation";
import { Card, Link, Text, Icon } from "@stellar/design-system";

import { NextLink } from "@/components/NextLink";
import { LayoutContentContainer } from "@/components/layout/LayoutContentContainer";
import { InfoCards } from "@/components/InfoCards";
import { SdsLink } from "@/components/SdsLink";
import { AssetPicker } from "@/components/FormElements/AssetPicker";

import { Routes } from "@/constants/routes";
import { AssetType } from "@/types/types";
import { IncludeFailedPicker } from "@/components/FormElements/IncludeFailedPicker";
import { OrderPicker } from "@/components/FormElements/OrderPicker";

export default function Introduction() {
const router = useRouter();

const [stringAssetId, setStringAssetId] = useState<AssetType | undefined>(
"issued",
);
const [stringAssetValue, setStringAssetValue] = useState<any>("aaa:bbb");

const [objectAssetId, setObjectAssetId] = useState<AssetType | undefined>(
"credit_alphanum4",
);
const [objectAssetValue, setObjectAssetValue] = useState<any>({
code: "ccc",
issuer: "ddd",
});

const infoCards = [
{
id: "stellar-quest",
Expand Down Expand Up @@ -73,50 +55,6 @@ export default function Introduction() {

return (
<LayoutContentContainer>
{/* TODO: remove, for testing only */}
<Card>
<div style={{ display: "grid", gap: 30 }}>
<AssetPicker
label="Asset"
id="test"
variant="string"
selectedOption={stringAssetId}
includeNone
value={stringAssetValue}
onChange={(opId, opValue) => {
setStringAssetId(opId);
setStringAssetValue(opValue);
}}
/>

<AssetPicker
label="Base Asset"
id="test-1"
variant="object"
selectedOption={undefined}
value={objectAssetValue}
onChange={(opId, opValue) => {
setObjectAssetId(opId);
setObjectAssetValue(opValue);
}}
/>

<IncludeFailedPicker
id="failed"
selectedOption=""
value={false}
onChange={() => {}}
/>

<OrderPicker
id="order"
selectedOption=""
value="asc"
onChange={() => {}}
/>
</div>
</Card>

<Card>
<div className="CardText">
<Text size="lg" as="h1" weight="medium">
Expand Down

0 comments on commit c150578

Please sign in to comment.