fix: Remove global CSS, use commonjs to support Next.js (#53)

This commit is contained in:
secretshardul 2021-07-09 12:39:08 +05:30 committed by GitHub
parent fd035017a5
commit e67506f523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,4 @@
import "@fontsource/roboto";
import { useState, useEffect, useMemo } from "react"; import { useState, useEffect, useMemo } from "react";
import { SnackbarProvider, useSnackbar } from "notistack"; import { SnackbarProvider, useSnackbar } from "notistack";
import { Button, Grid, makeStyles } from "@material-ui/core"; import { Button, Grid, makeStyles } from "@material-ui/core";

View File

@ -1,3 +1,4 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap");
body { body {
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",

View File

@ -6,7 +6,6 @@
"homepage": "https://github.com/project-serum/swap-ui", "homepage": "https://github.com/project-serum/swap-ui",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^4.3.0",
"@project-serum/serum": "^0.13.34", "@project-serum/serum": "^0.13.34",
"@project-serum/swap": "^0.1.0-alpha.31", "@project-serum/swap": "^0.1.0-alpha.31",
"@solana/spl-token": "^0.1.4" "@solana/spl-token": "^0.1.4"
@ -36,6 +35,7 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@fontsource/roboto": "4.3.0",
"@material-ui/core": "^4.11.4", "@material-ui/core": "^4.11.4",
"@material-ui/icons": "^4.11.2", "@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.58", "@material-ui/lab": "^4.0.0-alpha.58",

View File

@ -1 +0,0 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap");

View File

@ -1,4 +1,3 @@
import "@fontsource/roboto";
import { ReactElement } from "react"; import { ReactElement } from "react";
import { PublicKey } from "@solana/web3.js"; import { PublicKey } from "@solana/web3.js";
import { TokenListContainer } from "@solana/spl-token-registry"; import { TokenListContainer } from "@solana/spl-token-registry";

View File

@ -13,7 +13,7 @@
"strict": true, "strict": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"module": "esnext", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,

View File

@ -1255,7 +1255,7 @@
minimatch "^3.0.4" minimatch "^3.0.4"
strip-json-comments "^3.1.1" strip-json-comments "^3.1.1"
"@fontsource/roboto@^4.3.0": "@fontsource/roboto@4.3.0":
version "4.3.0" version "4.3.0"
resolved "https://registry.yarnpkg.com/@fontsource/roboto/-/roboto-4.3.0.tgz#00f1cceca43eff85bb0e1d424311751ee41f6aa6" resolved "https://registry.yarnpkg.com/@fontsource/roboto/-/roboto-4.3.0.tgz#00f1cceca43eff85bb0e1d424311751ee41f6aa6"
integrity sha512-WeFWCWYutLWyEtRmBhn+bLbW4/km0l+HhTpR8wWDxJLiGiMOhVLO/Z0q5w6l20ZOkWnf6Z1rN3o3W2HjvYN6Rg== integrity sha512-WeFWCWYutLWyEtRmBhn+bLbW4/km0l+HhTpR8wWDxJLiGiMOhVLO/Z0q5w6l20ZOkWnf6Z1rN3o3W2HjvYN6Rg==