Skip to content

Commit

Permalink
Fix stories
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Nov 26, 2024
1 parent 4dad3c0 commit e81c32c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/map-interface/src/dev/vector-tile-features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function FeatureRecord({ feature }) {
]);
}

/** This component wraps queryRenderedFeatures to get features at a given location */
export function FeatureSelectionHandler({
selectedLocation,
setFeatures,
Expand Down
6 changes: 6 additions & 0 deletions packages/map-interface/stories/navbar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { Meta, StoryObj } from "@storybook/react";
import { Breadcrumbs, Text } from "@blueprintjs/core";
import { FloatingNavbar, MapLoadingButton, FloatingNavbarProps } from "../src";
import { Box } from "@macrostrat/ui-components";
import { MapboxMapProvider } from "@macrostrat/mapbox-react";

function BasicNavbar(props: FloatingNavbarProps) {
return h(FloatingNavbar, {
Expand All @@ -16,6 +17,11 @@ function BasicNavbar(props: FloatingNavbarProps) {
const meta: Meta<FloatingNavbarProps> = {
title: "Map interface/Components/Floating navbar",
component: BasicNavbar,
decorators: [
(Story) => {
return h(MapboxMapProvider, h(Story));
},
],
};

export default meta;
Expand Down

0 comments on commit e81c32c

Please sign in to comment.