Skip to content

Commit

Permalink
Sunset legacy Field component
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Dec 23, 2024
1 parent b14757a commit 66df22d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useRef, useState } from "react";
import { Container, Footer, Content } from "@/components/layout";
import { Field } from "@cartridge/ui";
import { Box, Button } from "@chakra-ui/react";
import { useControllerTheme } from "@/hooks/theme";
import { usePostHog } from "posthog-js/react";
Expand All @@ -10,6 +9,7 @@ import { LoginMode } from "../types";
import { Legal, StatusTray } from ".";
import { useCreateController } from "./useCreateController";
import { ControllerTheme } from "@cartridge/presets";
import { Input } from "@cartridge/ui-next";

interface CreateControllerViewProps {
theme: ControllerTheme;
Expand Down Expand Up @@ -62,7 +62,7 @@ export function CreateControllerView({
borderColor="red.500"
borderRadius="base"
>
<Field
<Input
{...usernameField}
autoFocus
placeholder="shinobi"
Expand All @@ -71,7 +71,7 @@ export function CreateControllerView({
onUsernameChange(e.target.value.toLowerCase());
}}
isLoading={validation.status === "validating"}
isDisabled={isLoading}
disabled={isLoading}
onClear={onUsernameClear}
/>
</Box>
Expand Down

0 comments on commit 66df22d

Please sign in to comment.