Skip to content

Commit

Permalink
[web] Use named exports intead of defaults ones
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Nov 22, 2022
1 parent a4987d4 commit 8dbf94d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/components/core/Overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { Category, InstallButton } from "@components/core";
import { LanguageSelector } from "@components/language";
import { Storage } from "@components/storage";
import { Users } from "@components/users";
import Network from "@components/network";
import { Network } from "@components/network";

import {
EOS_SOFTWARE as OverviewIcon,
Expand Down
1 change: 0 additions & 1 deletion web/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/

export * from "./Layout";
export { default } from "./Layout";
export { default as Layout } from "./Layout";
export { default as Center } from "./Center";
export { default as DBusError } from "./DBusError";
Expand Down
1 change: 0 additions & 1 deletion web/src/components/network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* find current contact information at www.suse.com.
*/

export { default } from "./Network";
export { default as Network } from "./Network";
export { default as AddressesDataList } from "./AddressesDataList";
export { default as ConnectionsDataList } from "./ConnectionsDataList";
Expand Down
4 changes: 2 additions & 2 deletions web/src/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import React from "react";
import userEvent from "@testing-library/user-event";
import { render } from "@testing-library/react";

import { InstallerClientProvider } from "@context/installer";
import Layout from "@components/layout";
import { createClient } from "@client/index";
import { InstallerClientProvider } from "@context/installer";
import { Layout } from "@components/layout";

const InstallerProvider = ({ children }) => {
const client = createClient();
Expand Down

0 comments on commit 8dbf94d

Please sign in to comment.