Giter Club home page Giter Club logo

react-pwa-install's People

Contributors

itsdante avatar zoltangy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-pwa-install's Issues

license and translations

I want to use your code in a project, but there is no license. Is it possible for you to add one?
And i would like to add some translations on your project, so i can use it on a project iยดm working on. is that okay?

MUI-support

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.

Chrome on android

I opened Demo on an android device in latest version of chrome

If your browser is supported and you haven't already installed the app, you should see the install button below:

supported: false
isInstalled: false

Why I have no install prompt?

Window is not defined

I am using this package with Next.js, and it renders pages on server side, so can you put all window in useEffect scope.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.