Skip to content

Commit

Permalink
add name placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
dannybunschoten committed Aug 29, 2024
1 parent 7407bad commit f588385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/components/HighScoreBoard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import prisma from "../commons/db";

export const HighScoreBoard = ({
children,
Expand All @@ -20,7 +19,7 @@ export const HighScoreBoard = ({
type="text"
className="mt-2 w-full overflow-hidden rounded-lg border-4 border-red bg-blue px-2 text-right font-display text-[46px] text-white shadow-none focus:outline-none"
placeholder="Enter your name"
defaultValue={userName}
defaultValue={userName === "Default User" ? "" : userName}
onChange={(e) => setUserName(e.target.value)}
></input>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const config: Config = {
},
},
scroll: {
"0%": { transform: "translate(0, 0)" },
"0%": { transform: "translate(100%, 0)" },
"100%": { transform: "translate(-250%, 0)" },
},
},
Expand Down

0 comments on commit f588385

Please sign in to comment.