Skip to content

Commit be5c1e9

Browse files
committed
cp dines
1 parent f53a297 commit be5c1e9

58 files changed

Lines changed: 363 additions & 277 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/commands/auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { SuccessMessage } from "../components/SuccessMessage.js";
88
import { getSettingsUrl } from "../utils/url.js";
99
import { colors } from "../utils/theme.js";
1010

11-
const AuthUI: React.FC = () => {
11+
const AuthUI = () => {
1212
const [apiKey, setApiKeyInput] = React.useState("");
1313
const [saved, setSaved] = React.useState(false);
1414

src/commands/blueprint/create.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ interface CreateBlueprintOptions {
2323
output?: string;
2424
}
2525

26-
const CreateBlueprintUI: React.FC<{
27-
name: string;
28-
dockerfile?: string;
29-
dockerfilePath?: string;
30-
systemSetupCommands?: string[];
31-
resources?: string;
32-
architecture?: string;
33-
availablePorts?: string[];
34-
root?: boolean;
35-
user?: string;
36-
}> = ({
26+
const CreateBlueprintUI = ({
3727
name,
3828
dockerfile,
3929
dockerfilePath,
@@ -43,6 +33,16 @@ const CreateBlueprintUI: React.FC<{
4333
availablePorts,
4434
root,
4535
user,
36+
}: {
37+
name: string;
38+
dockerfile?: string;
39+
dockerfilePath?: string;
40+
systemSetupCommands?: string[];
41+
resources?: string;
42+
architecture?: string;
43+
availablePorts?: string[];
44+
root?: boolean;
45+
user?: string;
4646
}) => {
4747
const [loading, setLoading] = React.useState(true);
4848
const [result, setResult] = React.useState<any>(null);

src/commands/blueprint/get.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ interface GetBlueprintOptions {
1414
output?: string;
1515
}
1616

17-
const GetBlueprintUI: React.FC<{
18-
blueprintId: string;
19-
}> = ({ blueprintId }) => {
17+
const GetBlueprintUI = ({ blueprintId }: { blueprintId: string }) => {
2018
const [loading, setLoading] = React.useState(true);
2119
const [result, setResult] = React.useState<any>(null);
2220
const [error, setError] = React.useState<Error | null>(null);

src/commands/blueprint/list.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ const MAX_FETCH = 100;
2424

2525
type OperationType = "create_devbox" | "delete" | null;
2626

27-
const ListBlueprintsUI: React.FC<{
27+
const ListBlueprintsUI = ({
28+
onBack,
29+
onExit,
30+
}: {
2831
onBack?: () => void;
2932
onExit?: () => void;
30-
}> = ({ onBack, onExit }) => {
33+
}) => {
3134
const { stdout } = useStdout();
3235
const isMounted = React.useRef(true);
3336

src/commands/blueprint/logs.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ interface BlueprintLogsOptions {
1414
output?: string;
1515
}
1616

17-
const BlueprintLogsUI: React.FC<{
18-
blueprintId: string;
19-
}> = ({ blueprintId }) => {
17+
const BlueprintLogsUI = ({ blueprintId }: { blueprintId: string }) => {
2018
const [loading, setLoading] = React.useState(true);
2119
const [result, setResult] = React.useState<any>(null);
2220
const [error, setError] = React.useState<Error | null>(null);

src/commands/blueprint/preview.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ interface PreviewBlueprintOptions {
1616
output?: string;
1717
}
1818

19-
const PreviewBlueprintUI: React.FC<{
19+
const PreviewBlueprintUI = ({
20+
name,
21+
dockerfile,
22+
systemSetupCommands,
23+
}: {
2024
name: string;
2125
dockerfile?: string;
2226
systemSetupCommands?: string[];
23-
}> = ({ name, dockerfile, systemSetupCommands }) => {
27+
}) => {
2428
const [loading, setLoading] = React.useState(true);
2529
const [result, setResult] = React.useState<any>(null);
2630
const [error, setError] = React.useState<Error | null>(null);

src/commands/config.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ interface InteractiveThemeSelectorProps {
4343
initialTheme: "auto" | "light" | "dark";
4444
}
4545

46-
const InteractiveThemeSelector: React.FC<InteractiveThemeSelectorProps> = ({
46+
const InteractiveThemeSelector = ({
4747
initialTheme,
48-
}) => {
48+
}: InteractiveThemeSelectorProps) => {
4949
const { exit } = useApp();
5050
const [selectedIndex, setSelectedIndex] = React.useState(() =>
5151
themeOptions.findIndex((opt) => opt.value === initialTheme),
@@ -221,7 +221,7 @@ interface StaticConfigUIProps {
221221
value?: "auto" | "light" | "dark";
222222
}
223223

224-
const StaticConfigUI: React.FC<StaticConfigUIProps> = ({ action, value }) => {
224+
const StaticConfigUI = ({ action, value }: StaticConfigUIProps) => {
225225
const [saved, setSaved] = React.useState(false);
226226

227227
React.useEffect(() => {

src/commands/devbox/create.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ interface CreateOptions {
1515
output?: string;
1616
}
1717

18-
const CreateDevboxUI: React.FC<{
18+
const CreateDevboxUI = ({
19+
name,
20+
template,
21+
}: {
1922
name?: string;
2023
template?: string;
21-
}> = ({ name, template }) => {
24+
}) => {
2225
const [loading, setLoading] = React.useState(true);
2326
const [result, setResult] = React.useState<any>(null);
2427
const [error, setError] = React.useState<Error | null>(null);

src/commands/devbox/delete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ErrorMessage } from "../../components/ErrorMessage.js";
88
import { createExecutor } from "../../utils/CommandExecutor.js";
99
import { OutputOptions } from "../../utils/output.js";
1010

11-
const DeleteDevboxUI: React.FC<{ id: string }> = ({ id }) => {
11+
const DeleteDevboxUI = ({ id }: { id: string }) => {
1212
const [loading, setLoading] = React.useState(true);
1313
const [success, setSuccess] = React.useState(false);
1414
const [error, setError] = React.useState<Error | null>(null);

src/commands/devbox/download.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ interface DownloadOptions {
1616
outputFormat?: string;
1717
}
1818

19-
const DownloadFileUI: React.FC<{
19+
const DownloadFileUI = ({
20+
devboxId,
21+
filePath,
22+
outputPath,
23+
}: {
2024
devboxId: string;
2125
filePath: string;
2226
outputPath: string;
23-
}> = ({ devboxId, filePath, outputPath }) => {
27+
}) => {
2428
const [loading, setLoading] = React.useState(true);
2529
const [result, setResult] = React.useState<any>(null);
2630
const [error, setError] = React.useState<Error | null>(null);

0 commit comments

Comments
 (0)