Skip to content

Commit 24ff6dc

Browse files
committed
named export: Alert
1 parent 7a840cd commit 24ff6dc

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/components/Alert/Alert.test.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Alert, { AlertProps, AlertAction } from "./Alert";
1+
import { Alert, AlertProps, AlertAction } from "./Alert";
22
import { describeScreenshotFuzz } from "../../testing/e2e/utils";
33
import { VKCOM, ANDROID, IOS } from "../../lib/platform";
44

src/components/Alert/Alert.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import userEvent from "@testing-library/user-event";
33
import { AdaptivityProvider } from "../AdaptivityProvider/AdaptivityProvider";
44
import { ViewWidth } from "../../hoc/withAdaptivity";
55
import { baselineComponent } from "../../testing/utils";
6-
import Alert from "./Alert";
6+
import { Alert } from "./Alert";
77
import { ANDROID, IOS } from "../../lib/platform";
88
import ConfigProvider from "../ConfigProvider/ConfigProvider";
99

src/components/Alert/Alert.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ class Alert extends React.Component<TAlertProps, AlertState> {
285285
}
286286
}
287287

288-
// eslint-disable-next-line import/no-default-export
289-
export default withPlatform(
288+
const AlertWithPlatformAndAdaptivity = withPlatform(
290289
withAdaptivity(Alert, {
291290
viewWidth: true,
292291
})
293292
);
293+
294+
export { AlertWithPlatformAndAdaptivity as Alert };

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type { FixedLayoutProps } from "./components/FixedLayout/FixedLayout";
4141
*/
4242
export { PopoutWrapper } from "./components/PopoutWrapper/PopoutWrapper";
4343
export type { PopoutWrapperProps } from "./components/PopoutWrapper/PopoutWrapper";
44-
export { default as Alert } from "./components/Alert/Alert";
44+
export { Alert } from "./components/Alert/Alert";
4545
export type {
4646
AlertProps,
4747
AlertActionInterface,

0 commit comments

Comments
 (0)