Skip to content

Commit

Permalink
fix textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie committed Nov 8, 2024
1 parent 90ec7cd commit 26d32ff
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions apps/nextjs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { fileURLToPath } from "url";
import createJiti from "jiti";

// Import env files to validate at build time. Use jiti so we can load .ts files in here.
createJiti(fileURLToPath(import.meta.url))("./src/env");

createJiti(fileURLToPath(import.meta.url))("./src/env.ts");

const config: NextConfig = {
reactStrictMode: true,
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Navbar from "~/components/navbar/navbar";
import Footer from "~/components/footer";

const Cookies = dynamic(() => import("~/components/cookies/cookies"));
const AwesomeParticles = dynamic(() => import("~/components/awesome-particles"));
// const AwesomeParticles = dynamic(() => import("~/components/awesome-particles"));


export const metadata: Metadata = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Dispatch, SetStateAction } from "react";

import { Button, TextArea } from "@battle-stadium/ui";
import { Button, Textarea } from "@battle-stadium/ui";

import type { PokePasteMetadata, ValidatedPokemon } from "~/lib/pokemon/common";
import { postPokemonTeam } from "~/app/server-actions/pokemon/actions";
Expand Down Expand Up @@ -31,7 +31,7 @@ export function PokemonShowdownSetForm ({
name="pokepaste"
placeholder="Paste your Showdown Set here"
value={ input }
onChange={ (e) => setInput(e.target.value) }
onChange={ (e: { target: { value: SetStateAction<string>; }; }) => setInput(e.target.value) }
/>

<div className="flex flex-row items-center justify-center gap-4 pt-2">
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"lint": "turbo run lint --continue -- --cache --cache-location .cache/.eslintcache",
"lint:fix": "turbo run lint --continue -- --fix --cache --cache-location .cache/.eslintcache",
"lint:ws": "pnpm dlx sherif@latest",
"fix": "pnpm lint:fix && pnpm format:fix",
"postinstall": "pnpm lint:ws",
"typecheck": "turbo run typecheck",
"ui-add": "turbo run ui-add",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export * from "./sheet";
export * from "./separator";
export * from "./select";
export * from "./scroll-area";
export * from "./textarea";
export * from "./tooltip";
export * from "./toggle";
export * from "./theme";
Expand Down

0 comments on commit 26d32ff

Please sign in to comment.