From f260aad24f082385931cb3d2ec0e07edc7c955f0 Mon Sep 17 00:00:00 2001 From: Jiwon Choi Date: Tue, 22 Oct 2024 01:23:46 +0900 Subject: [PATCH] chore(next-codemod): use "confirm" for consistent prompt (#71551) ### Why? The prompts selection for React codemods were using "toggle", whereas other prompts using "confirm". Use "confirm" for consistency. --- packages/next-codemod/bin/upgrade.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/next-codemod/bin/upgrade.ts b/packages/next-codemod/bin/upgrade.ts index 49e195d57c66c..14be339b3c8f4 100644 --- a/packages/next-codemod/bin/upgrade.ts +++ b/packages/next-codemod/bin/upgrade.ts @@ -513,12 +513,10 @@ async function suggestCodemods( async function suggestReactCodemods(): Promise { const { runReactCodemod } = await prompts( { - type: 'toggle', + type: 'confirm', name: 'runReactCodemod', message: 'Would you like to run the React 19 upgrade codemod?', initial: true, - active: 'Yes', - inactive: 'No', }, { onCancel } ) @@ -529,12 +527,10 @@ async function suggestReactCodemods(): Promise { async function suggestReactTypesCodemods(): Promise { const { runReactTypesCodemod } = await prompts( { - type: 'toggle', + type: 'confirm', name: 'runReactTypesCodemod', message: 'Would you like to run the React 19 Types upgrade codemod?', initial: true, - active: 'Yes', - inactive: 'No', }, { onCancel } )