Skip to content
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

createTheme is not a function #53

Open
erwinespl opened this issue Apr 19, 2023 · 1 comment
Open

createTheme is not a function #53

erwinespl opened this issue Apr 19, 2023 · 1 comment

Comments

@erwinespl
Copy link

on nexJS

const SingleEliminationBracket = dynamic(
() => { return import("@g-loot/react-tournament-brackets").then(mod => mod.SingleEliminationBracket);},{ ssr: false }
);
const SVGViewer = dynamic(
() => { return import("@g-loot/react-tournament-brackets").then(mod => mod.SVGViewer);},{ ssr: false }
);
const createTheme = dynamic(
() => { return import("@g-loot/react-tournament-brackets").then(mod => mod.createTheme);},{ ssr: false }
);

const WhiteTheme = createTheme({
textColor: { main: "#000000", highlighted: "#ffffffde", dark: "#ffffffde" },
matchBackground: { wonColor: "#E7B738", lostColor: "#ffffff26" },
score: {
background: { wonColor: "#212121", lostColor: "#212121" },
text: { highlightedWonColor: "#E7B738", highlightedLostColor: "#FB7E94" },
},
border: {
color: "#fff",
highlightedColor: "#8968c4",
},
roundHeader: {
backgroundColor: "#424242",
fontColor: "#ffffffde"
},
connectorColor: "#B388FFE5",
connectorColorHighlight: "#E7B738",
svgBackground: "transparent",
});

@Shenato
Copy link
Contributor

Shenato commented Dec 4, 2023

Please let me know if this change fixes it #64

You can easily test it by npm installing this beta release https://www.npmjs.com/package/@g-loot/react-tournament-brackets/v/1.0.31-rc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants