Skip to content

Commit 04caa6d

Browse files
committed
named export: AppRoot
1 parent 5bf6da3 commit 04caa6d

File tree

10 files changed

+9
-12
lines changed

10 files changed

+9
-12
lines changed

src/components/AppRoot/AppRoot.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { render } from "@testing-library/react";
22
import { baselineComponent } from "../../testing/utils";
33
import { AppRootContext } from "./AppRootContext";
4-
import AppRoot from "./AppRoot";
4+
import { AppRoot } from "./AppRoot";
55
import { SizeType } from "../../hoc/withAdaptivity";
66

77
describe("AppRoot", () => {

src/components/AppRoot/AppRoot.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,3 @@ export const AppRoot = withAdaptivity<AppRootProps>(
209209
hasMouse: true,
210210
}
211211
);
212-
213-
// eslint-disable-next-line import/no-default-export
214-
export default AppRoot;

src/components/ChipsSelect/ChipsSelect.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ChipsSelect from "./ChipsSelect";
22
import { screenshot, mount } from "../../testing/e2e";
33
import { AdaptivityProvider } from "../AdaptivityProvider/AdaptivityProvider";
4-
import AppRoot from "../AppRoot/AppRoot";
4+
import { AppRoot } from "../AppRoot/AppRoot";
55

66
describe("ChipsSelect", () => {
77
const options = new Array(20)

src/components/FocusTrap/FocusTrap.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import userEvent from "@testing-library/user-event";
44
import { act } from "react-dom/test-utils";
55
import { baselineComponent } from "../../testing/utils";
66
import { FocusTrap, FocusTrapProps } from "./FocusTrap";
7-
import AppRoot from "../AppRoot/AppRoot";
7+
import { AppRoot } from "../AppRoot/AppRoot";
88
import { AdaptivityProvider } from "../AdaptivityProvider/AdaptivityProvider";
99
import { ActionSheet, ActionSheetProps } from "../ActionSheet/ActionSheet";
1010
import { ActionSheetItem } from "../ActionSheetItem/ActionSheetItem";

src/components/HorizontalScroll/HorizontalScroll.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ANDROID } from "../../lib/platform";
66
import { ViewWidth } from "../../hoc/withAdaptivity";
77
import { mount, screenshot } from "../../testing/e2e";
88
import { AdaptivityProvider } from "../AdaptivityProvider/AdaptivityProvider";
9-
import AppRoot from "../AppRoot/AppRoot";
9+
import { AppRoot } from "../AppRoot/AppRoot";
1010
import ConfigProvider from "../ConfigProvider/ConfigProvider";
1111
import { Scheme } from "../../helpers/scheme";
1212

src/components/ModalCard/ModalCard.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Avatar from "../Avatar/Avatar";
66
import UsersStack from "../UsersStack/UsersStack";
77
import Textarea from "../Textarea/Textarea";
88
import { describeScreenshotFuzz } from "../../testing/e2e";
9-
import AppRoot from "../AppRoot/AppRoot";
9+
import { AppRoot } from "../AppRoot/AppRoot";
1010
import { Icon56MoneyTransferOutline } from "@vkontakte/icons";
1111
import { Platform } from "../../lib/platform";
1212
import { ViewWidth } from "../AdaptivityProvider/AdaptivityContext";

src/components/Panel/Panel.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Panel, PanelProps } from "./Panel";
33
import { describeScreenshotFuzz } from "../../testing/e2e/utils";
44
import PanelHeader from "../PanelHeader/PanelHeader";
55
import Group from "../Group/Group";
6-
import AppRoot from "../AppRoot/AppRoot";
6+
import { AppRoot } from "../AppRoot/AppRoot";
77

88
describe("Panel", () => {
99
const content = (h: number) => (

src/components/Search/Search.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Search from "./Search";
22
import { screenshot, mount, describeScreenshotFuzz } from "../../testing/e2e";
33
import { IOS } from "../../lib/platform";
44
import { Icon16Add } from "@vkontakte/icons";
5-
import AppRoot from "../AppRoot/AppRoot";
5+
import { AppRoot } from "../AppRoot/AppRoot";
66
import ConfigProvider from "../ConfigProvider/ConfigProvider";
77

88
describe("Search", () => {

src/components/Textarea/Textarea.e2e.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Textarea from "./Textarea";
22
import { screenshot, mount, describeScreenshotFuzz } from "../../testing/e2e";
3-
import AppRoot from "../AppRoot/AppRoot";
3+
import { AppRoot } from "../AppRoot/AppRoot";
44

55
describe("Textarea", () => {
66
describeScreenshotFuzz(Textarea, [

src/testing/e2e/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from "../../components/AdaptivityProvider/AdaptivityContext";
2020
import { AdaptivityProps, withAdaptivity } from "../../hoc/withAdaptivity";
2121
import View from "../../components/View/View";
22-
import AppRoot from "../../components/AppRoot/AppRoot";
22+
import { AppRoot } from "../../components/AppRoot/AppRoot";
2323
import Group from "../../components/Group/Group";
2424

2525
type AdaptivityFlag = boolean | "x" | "y";

0 commit comments

Comments
 (0)