mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-27 20:18:38 +00:00
feat: integrate site display type into pricing components
Add siteDisplayType prop across various pricing components to conditionally render pricing information based on the selected display type. This update enhances the user experience by ensuring that pricing details are accurately represented according to the chosen display mode, particularly for token-based views.
This commit is contained in:
3
web/src/context/User/index.jsx
vendored
3
web/src/context/User/index.jsx
vendored
@@ -40,6 +40,9 @@ export const UserProvider = ({ children }) => {
|
||||
if (normalizedLanguage && normalizedLanguage !== i18n.language) {
|
||||
i18n.changeLanguage(normalizedLanguage);
|
||||
}
|
||||
if (normalizedLanguage) {
|
||||
localStorage.setItem('i18nextLng', normalizedLanguage);
|
||||
}
|
||||
} catch (e) {
|
||||
// Ignore parse errors
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user