-
Notifications
You must be signed in to change notification settings - Fork 265
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
Use hook for fetching branding preference #5996
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedThe changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. |
@@ -48,13 +50,17 @@ const AIBrandingPreferenceProvider: FunctionComponent<AIBrandingPreferenceProvid | |||
|
|||
const { children } = props; | |||
|
|||
const { preference } = useBrandingPreference(); |
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.
Shall we update the PR description with the reason for opting out of retrieving branding preferences from the context?
Also, if we are not using the branding preferences from context anywhere, let's remove it from the context too.
const { | ||
data: brandingPreference | ||
} = useGetBrandingPreferenceResolve(tenantDomain); |
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.
Shouldn't we handle loading, error states?
Please link the issue as well. |
Purpose
$subject
Related Issues
Related PRs
Checklist
Security checks