Skip to content

Commit

Permalink
fix(ao): add ao client to dispatch api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Dec 13, 2024
1 parent 1b5b343 commit 2949948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
40 changes: 2 additions & 38 deletions src/components/forms/DomainSettings/DomainSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ function DomainSettings({
owner: walletAddress!.toString(),
processId: data?.processId,
dispatch,
ao: aoClient,
})
}
/>
Expand All @@ -531,44 +532,7 @@ function DomainSettings({
owner: walletAddress!.toString(),
processId: data?.processId,
dispatch,
})
}
/>
),
[DomainSettingsRowTypes.DESCRIPTION]: (
<DescriptionRow
key={DomainSettingsRowTypes.DESCRIPTION}
description={data?.info.Description}
editable={isAuthorized}
confirm={(description: string) =>
dispatchANTInteraction({
payload: {
description,
},
workflowName: ANT_INTERACTION_TYPES.SET_DESCRIPTION,
signer: wallet!.contractSigner!,
owner: walletAddress!.toString(),
processId: data?.processId,
dispatch,
})
}
/>
),
[DomainSettingsRowTypes.KEYWORDS]: (
<KeywordsRow
key={DomainSettingsRowTypes.KEYWORDS}
keywords={data?.info.Keywords}
editable={isAuthorized}
confirm={(keywords: string[]) =>
dispatchANTInteraction({
payload: {
keywords,
},
workflowName: ANT_INTERACTION_TYPES.SET_KEYWORDS,
signer: wallet!.contractSigner!,
owner: walletAddress!.toString(),
processId: data?.processId,
dispatch,
ao: aoClient,
})
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export function ReassignNameModal({
arioProcessId,
dispatch: dispatchArNSState,
emitter: arnsEmitter,
ao: aoClient,
});
handleClose();
} catch (error) {
Expand Down

0 comments on commit 2949948

Please sign in to comment.