Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MUI-support #8

Open
Cmoen11 opened this issue Oct 29, 2021 · 0 comments
Open

MUI-support #8

Cmoen11 opened this issue Oct 29, 2021 · 0 comments

Comments

@Cmoen11
Copy link

Cmoen11 commented Oct 29, 2021

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

To be able to use Mui without having material-UI installed locally.

Here is the diff that solved my problem:

diff --git a/node_modules/react-pwa-install/es/Icons.js b/node_modules/react-pwa-install/es/Icons.js
index 016ad7a..4309691 100644
--- a/node_modules/react-pwa-install/es/Icons.js
+++ b/node_modules/react-pwa-install/es/Icons.js
@@ -1,6 +1,6 @@
 var _jsxFileName = "C:\\projects\\react-pwa-install\\src\\Icons.js";
 import React from "react";
-import { SvgIcon } from "@material-ui/core";
+import { SvgIcon } from "@mui/material";
 export function IOSShareIcon() {
   return /*#__PURE__*/React.createElement(SvgIcon, {
     viewBox: "0 0 50 50",
diff --git a/node_modules/react-pwa-install/es/InstallDialog.js b/node_modules/react-pwa-install/es/InstallDialog.js
index 97c8f2e..b7ada6d 100644
--- a/node_modules/react-pwa-install/es/InstallDialog.js
+++ b/node_modules/react-pwa-install/es/InstallDialog.js
@@ -1,6 +1,6 @@
 var _jsxFileName = "C:\\projects\\react-pwa-install\\src\\InstallDialog.js";
 import React from "react";
-import { Box, Typography, Dialog, DialogTitle, DialogContent } from "@material-ui/core";
+import { Box, Typography, Dialog, DialogTitle, DialogContent } from "@mui/material";
 import InstallDialogAction from "./InstallDialogAction";
 export default function InstallDialog(props) {
   return /*#__PURE__*/React.createElement(Dialog, {
diff --git a/node_modules/react-pwa-install/es/InstallDialogAction.js b/node_modules/react-pwa-install/es/InstallDialogAction.js
index 75c3649..c95301f 100644
--- a/node_modules/react-pwa-install/es/InstallDialogAction.js
+++ b/node_modules/react-pwa-install/es/InstallDialogAction.js
@@ -1,6 +1,6 @@
 var _jsxFileName = "C:\\projects\\react-pwa-install\\src\\InstallDialogAction.js";
 import React from "react";
-import { DialogActions, Typography, Button, Box } from "@material-ui/core";
+import { DialogActions, Typography, Button, Box } from "@mui/material";
 import { platforms } from "./Platforms";
 import { IOSShareIcon, FireFoxA2HSIcon, MenuIcon, OperaA2HSIcon } from "./Icons";
 

This issue body was partially generated by patch-package.

petevb pushed a commit to petevb/react-pwa-install that referenced this issue Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant