Skip to content

Commit ec2031c

Browse files
Fix: Lint errors to have a successful NPM build
1 parent ee89b92 commit ec2031c

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

rollup.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import externals from "rollup-plugin-node-externals";
66
import del from "rollup-plugin-delete";
77
import copy from "rollup-plugin-copy";
88
import postcss from "rollup-plugin-postcss";
9-
import tailwindcss from "tailwindcss";
9+
import tailwindPostcss from "@tailwindcss/postcss";
1010
import { readFileSync } from "fs";
1111
const pkg = JSON.parse(readFileSync("./package.json", { encoding: "utf8" }));
1212

1313
export default [
1414
{
1515
input: "./src/index.ts",
1616
plugins: [
17-
tailwindcss(),
17+
tailwindPostcss(),
1818
image(),
1919
del({ targets: "build/*" }),
2020
externals({ deps: true }),

src/components/prvt/logos/Logos.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const TranslateWrapper = ({
3030
children,
3131
reverse,
3232
}: {
33-
children: JSX.Element;
33+
children: React.ReactNode;
3434
reverse?: boolean;
3535
}) => {
3636
return (

src/components/shadcn/carousel.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ function Carousel({
6161
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
6262
const [canScrollNext, setCanScrollNext] = React.useState(false);
6363

64-
const onSelect = React.useCallback((api: CarouselApi) => {
64+
const onSelect = React.useCallback(() => {
6565
if (!api) return;
6666
setCanScrollPrev(api.canScrollPrev());
6767
setCanScrollNext(api.canScrollNext());
68-
}, []);
68+
}, [api]);
6969

7070
const scrollPrev = React.useCallback(() => {
7171
api?.scrollPrev();
@@ -95,13 +95,15 @@ function Carousel({
9595

9696
React.useEffect(() => {
9797
if (!api) return;
98-
98+
9999
onSelect();
100100
api.on("reInit", onSelect);
101101
api.on("select", onSelect);
102102

103103
return () => {
104-
api?.off("select", onSelect);
104+
if (!api) return;
105+
api.off("select", onSelect);
106+
api.off("reInit", onSelect);
105107
};
106108
}, [api, onSelect]);
107109

src/stories/components/core/neu-follow-button.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const meta = {
3636
</div>
3737
),
3838
],
39-
} satisfies Meta<NeuButtonProps>;
39+
} as Meta<NeuButtonProps>;
4040

4141
export default meta;
4242
type Story = StoryObj<NeuButtonProps>;

0 commit comments

Comments
 (0)