bugfix - resolved a loading issue on system

This commit is contained in:
James Wyndham 2024-02-22 18:30:20 +08:00
parent a30c12b655
commit a3b12d63b6
5 changed files with 1760 additions and 4756 deletions

View File

@ -22,5 +22,5 @@ export function GTagProvider() {
} }
export function ThemeProvider({ children }) { export function ThemeProvider({ children }) {
return <NTThemeProvider>{children}</NTThemeProvider> return <NTThemeProvider defaultTheme = 'light'>{children}</NTThemeProvider>
} }

View File

@ -19,7 +19,6 @@ const Background = ({ children }: { children: ReactNode }) => {
); );
} }
console.log("theme", theme);
const backgroundColor = hexToRgb(colors[theme!]["base-100"]); const backgroundColor = hexToRgb(colors[theme!]["base-100"]);
return ( return (

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@fluentui/react-icons": "^2.0.227", "@fluentui/react-icons": "^2.0.228",
"@hookform/resolvers": "^3.2.0", "@hookform/resolvers": "^3.2.0",
"@netlify/functions": "^2.1.0", "@netlify/functions": "^2.1.0",
"@next/third-parties": "^14.1.0", "@next/third-parties": "^14.1.0",

View File

@ -44,7 +44,7 @@ const Payment = ({
<PriceCard loading={isLoading} /> <PriceCard loading={isLoading} />
</> </>
) : ( ) : (
products (products ?? [])
.filter((x) => .filter((x) =>
type == "one_time" ? x.type == "one_time" : x.type != "one_time" type == "one_time" ? x.type == "one_time" : x.type != "one_time"
) )