From a999116bdb324366e4be9949102d95a7d467fec5 Mon Sep 17 00:00:00 2001 From: wangjingcun Date: Wed, 27 Nov 2024 00:35:24 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: wangjingcun --- apps/remix-dapp/src/components/ContractGUI/index.tsx | 2 +- apps/remix-dapp/src/components/UiTerminal/index.tsx | 2 +- apps/remix-dapp/src/utils/txRunner.ts | 2 +- libs/remix-ui/git/src/lib/gitactions.ts | 4 ++-- libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix-dapp/src/components/ContractGUI/index.tsx b/apps/remix-dapp/src/components/ContractGUI/index.tsx index 15393752bd1..8299812b724 100644 --- a/apps/remix-dapp/src/components/ContractGUI/index.tsx +++ b/apps/remix-dapp/src/components/ContractGUI/index.tsx @@ -26,7 +26,7 @@ export function ContractGUI(props: any) { setTitle(props.funcABI.type === 'receive' ? '(receive)' : '(fallback)'); } setBasicInput(''); - // we have the reset the fields before reseting the previous references. + // we have the reset the fields before resetting the previous references. if (basicInputRef.current) basicInputRef.current.value = ''; multiFields.current .filter((el) => el !== null && el !== undefined) diff --git a/apps/remix-dapp/src/components/UiTerminal/index.tsx b/apps/remix-dapp/src/components/UiTerminal/index.tsx index 78554b7f2ac..8534664a3b2 100644 --- a/apps/remix-dapp/src/components/UiTerminal/index.tsx +++ b/apps/remix-dapp/src/components/UiTerminal/index.tsx @@ -26,7 +26,7 @@ export const RemixUiTerminal = (props: any) => { const messagesEndRef = useRef(null); const typeWriterIndexes = useRef([]); - // terminal dragable + // terminal draggable const panelRef = useRef(null); const terminalMenu = useRef(null); diff --git a/apps/remix-dapp/src/utils/txRunner.ts b/apps/remix-dapp/src/utils/txRunner.ts index 1914302c02e..36bd2220d44 100644 --- a/apps/remix-dapp/src/utils/txRunner.ts +++ b/apps/remix-dapp/src/utils/txRunner.ts @@ -39,7 +39,7 @@ async function tryTillReceiptAvailable(txhash: Bytes) { if (!receipt.to && !receipt.contractAddress) { // this is a contract creation and the receipt doesn't contain a contract address. we have to keep polling... console.log( - 'this is a contract creation and the receipt does nott contain a contract address. we have to keep polling...' + 'this is a contract creation and the receipt does not contain a contract address. we have to keep polling...' ); return receipt; } else return receipt; diff --git a/libs/remix-ui/git/src/lib/gitactions.ts b/libs/remix-ui/git/src/lib/gitactions.ts index 2568696180c..8ab6680988d 100644 --- a/libs/remix-ui/git/src/lib/gitactions.ts +++ b/libs/remix-ui/git/src/lib/gitactions.ts @@ -201,7 +201,7 @@ export const commit = async (message: string = "") => { sendToGitLog({ type: 'success', - message: `Commited: ${sha}` + message: `Committed: ${sha}` }) } catch (err) { @@ -577,7 +577,7 @@ export const saveGitHubCredentials = async (credentials: { username: string, ema await plugin.call('notification', 'alert', { title: 'Error', id: 'github-credentials-error', - message: `Could not retreive the user from GitHub. You can continue to use the app, but you will not be able to push or pull.` + message: `Could not retrieve the user from GitHub. You can continue to use the app, but you will not be able to push or pull.` }) } dispatch(setGitHubUser({ diff --git a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx index a5a0fe8ed7a..f215b9ab53b 100644 --- a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx +++ b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx @@ -59,7 +59,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => { console.log('expand ----> ', key) } - // The expanded widged should go to the grid-segment and be updated based on the expandedItem state variable of the plugin. + // The expanded widget should go to the grid-segment and be updated based on the expandedItem state variable of the plugin. // The state var will work like theme dispattching is working. useEffect(() => {