-
Notifications
You must be signed in to change notification settings - Fork 28
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
chore: Themes API Frontend Support #1982
base: main
Are you sure you want to change the base?
Conversation
Changed Files
|
src/entryPoints/HyperSwitchApp.res
Outdated
let _ = updateThemeURLs(themeData) | ||
let _ = themeData->configCustomDomainTheme |
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.
Please move both the functions inside the getThemeJSON
src/context/ThemeProvider.res
Outdated
faviconUrl: urlsDict->getString("faviconUrl", "")->getNonEmptyString, | ||
logoUrl: urlsDict->getString("logoUrl", "")->getNonEmptyString, | ||
} | ||
Js.log2("val", val) |
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.
remove the logs
src/context/ThemeProvider.res
Outdated
let _ = setAttribute(a, "rel", "shortcut icon") | ||
let _ = setAttribute(a, "type", "image/x-icon") | ||
let _ = appendHead(a) | ||
Js.log(a) |
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.
remove the log
Type of Change
Description
Added support for
theme_id
inuserInfo
and integrated themes API inHyperSwitchApp
andEntry
. Introduced a generic URL updater andgetThemesJson
API caller inThemesProvider.res
.Motivation and Context
Support dynamic themes configuration.
How did you test it?
dev_theme_feature.
Where to test it?
Checklist
npm run re:build