Skip to content

Commit

Permalink
fix: logo title and subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
rin-st committed Oct 17, 2024
1 parent d3c60ee commit bdbe4d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .changeset/purple-bulldogs-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"create-eth": patch
---

template: allow passing metadata & header logoText and description
template: allow passing metadata & header logo title and subtitle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withDefaults } from "../../../../utils.js";
const contents = ({ menuIconImports, menuObjects, logoText, logoDescription }) => {
const contents = ({ menuIconImports, menuObjects, logoTitle, logoSubtitle }) => {
const stringifiedAdditionalMenuLinks = menuObjects.filter(Boolean).join(",\n");

return `"use client";
Expand Down Expand Up @@ -99,8 +99,8 @@ export const Header = () => {
<Image alt="SE2 logo" className="cursor-pointer" fill src="/logo.svg" />
</div>
<div className="flex flex-col">
<span className="font-bold leading-tight">${logoText}</span>
<span className="text-xs">${logoDescription}</span>
<span className="font-bold leading-tight">${logoTitle}</span>
<span className="text-xs">${logoSubtitle}</span>
</div>
</Link>
<ul className="hidden lg:flex lg:flex-nowrap menu menu-horizontal px-1 gap-2">
Expand All @@ -119,6 +119,6 @@ export const Header = () => {
export default withDefaults(contents, {
menuIconImports: "",
menuObjects: "",
logoText: "Scaffold-ETH",
logoDescription: "Ethereum dev stack"
logoTitle: "Scaffold-ETH",
logoSubtitle: "Ethereum dev stack"
});

0 comments on commit bdbe4d7

Please sign in to comment.