Skip to content

Commit c5d4222

Browse files
davidsklar99github-actions[bot]
authored andcommitted
Apply formatting changes
1 parent 4a1cae0 commit c5d4222

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ComponentStory, ComponentMeta } from "@storybook/react-vite";
22
import h from "@macrostrat/hyper";
33
import { Pagination } from "../src";
4-
import { useState } from "react"
4+
import { useState } from "react";
55

66
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
77
export default {
@@ -12,9 +12,13 @@ export default {
1212
} as ComponentMeta<typeof Pagination>;
1313

1414
export function Basic() {
15-
const [ix, setIX] = useState(0)
16-
return h('div', [
17-
h('p', `Current page: ${ix}`),
18-
h(Pagination, { currentPage: ix, nextDisabled: false, setPage: (page: number) => setIX(page) }),
19-
])
20-
}
15+
const [ix, setIX] = useState(0);
16+
return h("div", [
17+
h("p", `Current page: ${ix}`),
18+
h(Pagination, {
19+
currentPage: ix,
20+
nextDisabled: false,
21+
setPage: (page: number) => setIX(page),
22+
}),
23+
]);
24+
}

0 commit comments

Comments
 (0)