We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bd43d commit a26d014Copy full SHA for a26d014
src/leva-controls/Examples.tsx
@@ -4,6 +4,7 @@ import { useControls } from "leva";
4
import { jsx } from "leva-plugins/jsx";
5
import { keys } from "lodash";
6
import { client } from "queryClient";
7
+import { basename } from "utils";
8
9
const maps = import.meta.glob("/public/examples/*.map", {
10
query: "?url",
@@ -16,7 +17,7 @@ export function Examples() {
16
17
value: (
18
<QueryClientProvider client={client}>
19
{keys(maps).map((k) => (
- <Example path={k} />
20
+ <Example path={`/examples/${basename(k)}`} />
21
))}
22
</QueryClientProvider>
23
),
0 commit comments