Skip to content

Commit

Permalink
fix: Assign default theme if none is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcell committed Feb 18, 2022
1 parent 7cebbc5 commit 51f6070
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/wizard/RecapBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export function FontSwitcher({ cssVariable, setData, data }) {
}
export default function RecapBar({ data, setData, onClickNext }) {
const [menuIsOpen, setMenuIsOpen] = useState(false);
const deployUrl = `https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/nextjs-blog-theme#BLOG_NAME=${data.name}&BLOG_TITLE=${data.blogTitle}&BLOG_FOOTER_TEXT=${data.footerText}&BLOG_THEME=${data.theme}&BLOG_FONT_HEADINGS=${data["--font-primary"]}&BLOG_FONT_PARAGRAPHS=${data["--font-secondary"]}`;
const blogTheme = data.theme || "default";
const deployUrl = `https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/nextjs-blog-theme#BLOG_NAME=${data.name}&BLOG_TITLE=${data.blogTitle}&BLOG_FOOTER_TEXT=${data.footerText}&BLOG_THEME=${blogTheme}&BLOG_FONT_HEADINGS=${data["--font-primary"]}&BLOG_FONT_PARAGRAPHS=${data["--font-secondary"]}`;

return (
<div className="font-sans fixed bottom-4 z-index-10 w-full max-w-[56rem] left-2/4 transform -translate-x-2/4 ">
Expand Down

0 comments on commit 51f6070

Please sign in to comment.