This repository was archived by the owner on Jun 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +6
-12
lines changed Expand file tree Collapse file tree 5 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { format } from 'fecha' ;
33import { PostData } from '../loader' ;
4- import { globals } from '../globals' ;
54
65export const FollowButton = ( ) => {
76 return (
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' ;
32import { darcula } from 'react-syntax-highlighter/dist/cjs/styles/prism' ;
3+ import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' ;
44
55export default class Code extends React . PureComponent < {
66 language : string ;
@@ -10,9 +10,7 @@ export default class Code extends React.PureComponent<{
1010 const { language, value } = this . props ;
1111 return (
1212 < SyntaxHighlighter
13- language = { ( language === 'ts'
14- ? 'typescript'
15- : language ) || 'typescript' }
13+ language = { ( language === 'ts' ? 'typescript' : language ) || 'typescript' }
1614 style = { darcula }
1715 >
1816 { value }
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import ReactMarkdown from 'react-markdown/with-html' ;
32import Code from './Code' ;
4- import { globals } from '../globals ' ;
3+ import ReactMarkdown from 'react-markdown/with-html ' ;
54
65export const Markdown : React . FC < { source : string } > = ( props ) => {
76 return (
Original file line number Diff line number Diff line change 1- import Head from 'next/head' ;
21import React from 'react' ;
3- import { Header } from '../components/Header ' ;
2+ import Head from 'next/head ' ;
43import { Footer } from '../components/Footer' ;
54import { globals } from '../globals' ;
5+ import { Header } from '../components/Header' ;
6+ import '../styles/base.css' ;
67
78const App : React . FC = ( { Component, pageProps } : any ) => {
89 return (
Original file line number Diff line number Diff line change 11import Head from 'next/head' ;
2- import { PostData , loadBlogPosts , loadMarkdownFile } from '../loader' ;
3- import { PostCard } from '../components/PostCard' ;
42import { generateRSS } from '../rssUtil' ;
53import { Markdown } from '../components/Markdown' ;
6- import { globals } from '../globals' ;
74
85const sectionStyle = {
96 width : '100%' ,
You can’t perform that action at this time.
0 commit comments