-
Notifications
You must be signed in to change notification settings - Fork 566
feat: consumer credentials pages #3018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: consumer credentials pages #3018
Conversation
…reams-detail-edit
…am-routes-detail-edit
useEffect(() => { | ||
methods.setValue('config', toConfigStr(config)); | ||
}, [config]); | ||
}, [config, methods]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow the suggestions.
useEffect(() => optionsOb.setPlugins(plugins), [optionsOb, plugins]); | ||
useEffect(() => optionsOb.setSearch(search), [optionsOb, search]); | ||
useEffect(() => optionsOb.setMode(mode), [optionsOb, mode]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow the suggestions in console.
useEffect(() => { | ||
reinitializeRef.current(); | ||
}, [deps]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow the suggestions in console.
<DetailCredentialsTabs /> | ||
<PageHeader | ||
title={t('consumers.credentials.edit.title')} | ||
{...(readOnly && { | ||
title: t('consumers.credentials.detail.title'), | ||
extra: ( | ||
<Button | ||
onClick={() => setReadOnly(false)} | ||
size="compact-sm" | ||
variant="gradient" | ||
> | ||
{t('form.btn.edit')} | ||
</Button> | ||
), | ||
})} | ||
/> | ||
<FormTOCBox> | ||
<CredentialDetailForm readOnly={readOnly} setReadOnly={setReadOnly} /> | ||
</FormTOCBox> | ||
</> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a button here to return to the credential list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users can directly click on the Credentials tab at the top
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
depend on #3016