refactor [id].tsx
This commit is contained in:
parent
c9c08926f7
commit
7d9e2a35e9
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
import { useRef, useEffect, useState, createRef } from 'react'
|
import { useEffect, createRef } from 'react'
|
||||||
import type { InferGetServerSidePropsType, NextPage } from 'next'
|
|
||||||
import { GetServerSideProps } from 'next'
|
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import hljs from 'highlight.js'
|
import hljs from 'highlight.js'
|
||||||
|
|
@ -10,6 +8,7 @@ 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'
|
import NoteAdd from '@material-ui/icons/NoteAdd'
|
||||||
|
import { GetServerSideProps } from 'next'
|
||||||
|
|
||||||
|
|
||||||
const Viewer = ({ code }: {code: string}) => {
|
const Viewer = ({ code }: {code: string}) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue