Skip to content

Commit

Permalink
react leaflet remove
Browse files Browse the repository at this point in the history
  • Loading branch information
rajmaddy89 committed Sep 13, 2023
1 parent 6baeaa2 commit 72d5963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion managed/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
"react-error-overlay": "6.0.9",
"react-hook-form": "7.40.0",
"react-i18next": "11.18.6",
"react-leaflet": "^1.9.1",
"react-measure": "1.4.7",
"react-query": "3.8.2",
"react-redux": "7.2.6",
Expand Down
6 changes: 3 additions & 3 deletions managed/ui/src/stories/YBTabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default meta;
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
export const Tabs = (args: any) => {
// More on args: https://storybook.js.org/docs/react/writing-stories/args
const [currentTab, setTab] = useState<string>('tab11');
const [currentTab, setTab] = useState<string>('tab1');

const handleChange = (_: any, tab: string) => {
setTab(tab);
Expand All @@ -31,12 +31,12 @@ export const Tabs = (args: any) => {
aria-label="tab section example"
{...args}
>
<MUItab label="YugabyteDB Open Source" value="tab11" disabled={args.disabled} />
<MUItab label="YugabyteDB Open Source" value="tab1" disabled={args.disabled} />
<MUItab label="Yugabyte Platform" value="tab2" disabled={args.disabled} />
<MUItab label="YugabyteDB Managed" value="tab3" disabled={args.disabled} />
</MUITabs>
<Box>
{currentTab === 'tab11' && (
{currentTab === 'tab1' && (
<Box m={2}>
<Typography variant="h2">{'YugabyteDB Open Source'}</Typography>
<Box mt={1}>
Expand Down

0 comments on commit 72d5963

Please sign in to comment.