update material icons

This commit is contained in:
Divyam Ahuja 2022-02-22 17:57:15 +05:30
parent 19bb6bae63
commit ca3f23bd12
5 changed files with 20 additions and 5 deletions

View file

@ -9,6 +9,7 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@material-ui/icons": "^4.11.2",
"faunadb": "^4.5.2", "faunadb": "^4.5.2",
"highlight.js": "^11.4.0", "highlight.js": "^11.4.0",
"next": "12.1.0", "next": "12.1.0",

View file

@ -8,6 +8,9 @@ import styles from '../styles/Viewer.module.css'
import header_styles from '../styles/Header.module.css' import header_styles from '../styles/Header.module.css'
import 'highlight.js/styles/atom-one-dark.css'; import 'highlight.js/styles/atom-one-dark.css';
import NoteAdd from '@material-ui/icons/NoteAdd'
const Viewer: NextPage = () => { const Viewer: NextPage = () => {
const codeRef = useRef<HTMLTextAreaElement>(null) const codeRef = useRef<HTMLTextAreaElement>(null)
@ -46,7 +49,7 @@ const Viewer: NextPage = () => {
<div <div
className={header_styles["buttons"]} className={header_styles["buttons"]}
onClick={() => router.push('/')} onClick={() => router.push('/')}
><span className="material-icons">note_add</span></div> ><NoteAdd /></div>
</div> </div>
</div> </div>

View file

@ -4,7 +4,7 @@ export default function Document() {
return ( return (
<Html> <Html>
<Head> <Head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" key="material-icons"></link> {/*<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" key="material-icons"></link>**/}
</Head> </Head>
<body> <body>
<Main /> <Main />

View file

@ -6,6 +6,8 @@ import { useRouter } from 'next/router'
import styles from '../styles/Editor.module.css' import styles from '../styles/Editor.module.css'
import header_styles from '../styles/Header.module.css' import header_styles from '../styles/Header.module.css'
import Save from '@material-ui/icons/Save'
import NoteAdd from '@material-ui/icons/NoteAdd'
const Home: NextPage = () => { const Home: NextPage = () => {
@ -53,12 +55,14 @@ const Home: NextPage = () => {
<div <div
className={header_styles["buttons"]} className={header_styles["buttons"]}
onClick={() => router.push('/')} onClick={() => router.push('/')}
><span className="material-icons">note_add</span></div> >
<NoteAdd />
</div>
<div <div
className={header_styles["buttons"]} className={header_styles["buttons"]}
onClick={save} onClick={save}
> >
<span className="material-icons">save</span> <Save />
</div> </div>
</div> </div>
</div> </div>

View file

@ -10,7 +10,7 @@
core-js-pure "^3.20.2" core-js-pure "^3.20.2"
regenerator-runtime "^0.13.4" regenerator-runtime "^0.13.4"
"@babel/runtime@^7.10.2", "@babel/runtime@^7.16.3": "@babel/runtime@^7.10.2", "@babel/runtime@^7.16.3", "@babel/runtime@^7.4.4":
version "7.17.2" version "7.17.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941"
integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw== integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==
@ -46,6 +46,13 @@
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
"@material-ui/icons@^4.11.2":
version "4.11.2"
resolved "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.11.2.tgz#b3a7353266519cd743b6461ae9fdfcb1b25eb4c5"
integrity sha512-fQNsKX2TxBmqIGJCSi3tGTO/gZ+eJgWmMJkgDiOfyNaunNaxcklJQFaFogYcFl0qFuaEz1qaXYXboa/bUXVSOQ==
dependencies:
"@babel/runtime" "^7.4.4"
"@next/env@12.1.0": "@next/env@12.1.0":
version "12.1.0" version "12.1.0"
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.1.0.tgz#73713399399b34aa5a01771fb73272b55b22c314" resolved "https://registry.yarnpkg.com/@next/env/-/env-12.1.0.tgz#73713399399b34aa5a01771fb73272b55b22c314"