diff --git a/components/new-workspace-form.tsx b/components/new-workspace-form.tsx index b975eae..181dc37 100644 --- a/components/new-workspace-form.tsx +++ b/components/new-workspace-form.tsx @@ -45,7 +45,7 @@ const FormSchema = z.object({ function getLabel(value: string) { switch (value) { - case "aelf": + case "aelf-hello-world": return "Hello World"; case "aelf-lottery": @@ -57,6 +57,18 @@ function getLabel(value: string) { case "aelf-simple-dao": return "Simple DAO"; + case "aelf-todo": + return "Todo"; + + case "aelf-tictactoe": + return "Tic Tac Toe"; + + case "aelf-expense": + return "Expense Tracker"; + + case "aelf-staking": + return "Single Pool Staking"; + default: return value; } @@ -64,7 +76,16 @@ function getLabel(value: string) { export function WorkspaceForm() { const [searchParams] = useSearchParams(); - const templateOptions = ["aelf", "aelf-lottery", "aelf-nft-sale", "aelf-simple-dao"]; + const templateOptions = [ + "aelf-hello-world", + "aelf-lottery", + "aelf-nft-sale", + "aelf-simple-dao", + "aelf-todo", + "aelf-tictactoe", + "aelf-expense", + "aelf-staking", + ]; const form = useForm>({ resolver: zodResolver(FormSchema), defaultValues: { diff --git a/src/routes/home.tsx b/src/routes/home.tsx index a71c936..14796dc 100644 --- a/src/routes/home.tsx +++ b/src/routes/home.tsx @@ -3,6 +3,10 @@ import { TargetIcon, TokensIcon, PersonIcon, + ListBulletIcon, + MixIcon, + IdCardIcon, + StackIcon, } from "@radix-ui/react-icons"; import { Link } from "react-router-dom"; import { ReactNode } from "react"; @@ -41,7 +45,7 @@ import { title: "Hello World", subtitle: "The basics.", icon: , - template: "aelf", + template: "aelf-hello-world", }, { title: "Lottery", @@ -61,6 +65,30 @@ import { icon: , template: "aelf-simple-dao", }, + { + title: "ToDo", + subtitle: "A basic ToDo smart contract", + icon: , + template: "aelf-todo", + }, + { + title: "Tic Tac Toe", + subtitle: "Decentralised gamify contract", + icon: , + template: "aelf-tictactoe", + }, + { + title: "Expense Tracker", + subtitle: "Expense organizer", + icon: , + template: "aelf-expense", + }, + { + title: "Single Pool Staking", + subtitle: "Token staking", + icon: , + template: "aelf-staking", + }, ]; return (