Skip to content

Commit

Permalink
feat: add groups support for mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
flops committed Dec 5, 2024
1 parent bffa7a0 commit 4a0460f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 130 deletions.
7 changes: 6 additions & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
}
}
],
"@babel/preset-typescript",
[
"@babel/preset-typescript",
{
"allowDeclareFields": true
}
],
"@babel/preset-react"
],
"plugins": []
Expand Down
12 changes: 6 additions & 6 deletions .storybook/decorators/withMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import type {Decorator} from '@storybook/react';
import {MobileProvider} from '@gravity-ui/uikit';
import {DashKit} from '../../src/components/DashKit/DashKit';

export const withMobile: Decorator = (Story, context) => {
const platform = context.globals.platform;

return (
<MobileProvider mobile={platform === 'mobile'} platform={platform}>
<Story key={platform} {...context} />
</MobileProvider>
);
DashKit.setSettings({
isMobile: platform === 'mobile',
});

return <Story key={platform} {...context} />;
};
123 changes: 0 additions & 123 deletions src/components/MobileLayout/MobileLayout.js

This file was deleted.

0 comments on commit 4a0460f

Please sign in to comment.