Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowagent committed Feb 17, 2022
1 parent 7df8fbb commit 097ad9d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@buildship/web3-login",
"version": "0.1.0",
"description": "UX-focused web3 auth for your app",
"description": "UX-focused web3 auth for your React app",
"author": "Buildship",
"keywords": [
"buildship",
Expand Down Expand Up @@ -71,5 +71,10 @@
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"typescript-plugin-css-modules": "^3.4.0"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/buildship-dev/web3-login.git"
},
"license": "Apache-2.0"
}
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import './App.css';
import { ConnectWeb3Modal } from "./package";
import { Web3Provider } from "./package";
import { defaultConnectors } from "./package/connectors";
import { theme } from "./styles/theme";
import { defaultTheme } from "./styles/theme";

function App() {
const [open, setOpen] = useState(true)
return (
<Web3Provider
theme={theme}
theme={defaultTheme}
supportedChainIds={[1, 4]}
connectors={defaultConnectors}>
<ConnectWeb3Modal open={open} setOpen={setOpen} />
Expand Down
25 changes: 11 additions & 14 deletions src/package/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { Dialog, DialogContent, DialogTitle, ThemeProvider } from "@mui/material";
import { Dialog, DialogContent, DialogTitle } from "@mui/material";
import styles from "./Modal.module.css"
import { theme } from "../../../styles/theme";

interface ModalProps {
open: boolean;
Expand All @@ -22,17 +21,15 @@ export const Modal = ({
}

return (
<ThemeProvider theme={theme}>
<Dialog
open={open}
onClose={handleClose}>
<DialogTitle className={styles.title}>
{title}
</DialogTitle>
<DialogContent>
{children}
</DialogContent>
</Dialog>
</ThemeProvider>
<Dialog
open={open}
onClose={handleClose}>
<DialogTitle className={styles.title}>
{title}
</DialogTitle>
<DialogContent>
{children}
</DialogContent>
</Dialog>
)
}
2 changes: 1 addition & 1 deletion src/styles/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createTheme} from "@mui/material";

export const theme = createTheme({
export const defaultTheme = createTheme({
palette: {
primary: {
main: "#1f1f1f",
Expand Down

0 comments on commit 097ad9d

Please sign in to comment.