Skip to content

Commit 2ae3d18

Browse files
author
Savina Shen (Manpower Services Taiwan Co Ltd)
committed
refine mapstyle sample code
1 parent 9fbfbbc commit 2ae3d18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/stories/BasicUsage/MapStyles/MapStyles.stories.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import type { Meta, StoryObj } from '@storybook/react';
22
import MapStyles from './MapStyles';
33
import { source } from 'azure-maps-control';
4+
import { Story } from '@storybook/blocks';
45

56
const meta: Meta<typeof MapStyles> = {
67
title: 'Basic Usage/Map Styles',
78
component: MapStyles,
89
parameters: {
910
layout: 'centered',
10-
source: `
11+
storySource: {
12+
source: `
1113
import { AzureMap, AzureMapsProvider } from 'react-azure-maps';
1214
1315
const MapStyles = () => {
16+
1417
return (
1518
<AzureMapsProvider>
1619
<div className="defaultMap">
@@ -27,6 +30,7 @@ const MapStyles = () => {
2730
);
2831
};
2932
`,
33+
},
3034
},
3135
};
3236
export default meta;

0 commit comments

Comments
 (0)