Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 884e417

Browse files
committed
Code formatting and import re-order
1 parent a9c2db8 commit 884e417

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

components/Author.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { format } from 'fecha';
33
import { PostData } from '../loader';
4-
import { globals } from '../globals';
54

65
export const FollowButton = () => {
76
return (

components/Code.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
32
import { darcula } from 'react-syntax-highlighter/dist/cjs/styles/prism';
3+
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
44

55
export 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}

components/Markdown.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
2-
import ReactMarkdown from 'react-markdown/with-html';
32
import Code from './Code';
4-
import { globals } from '../globals';
3+
import ReactMarkdown from 'react-markdown/with-html';
54

65
export const Markdown: React.FC<{ source: string }> = (props) => {
76
return (

pages/_app.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import Head from 'next/head';
21
import React from 'react';
3-
import { Header } from '../components/Header';
2+
import Head from 'next/head';
43
import { Footer } from '../components/Footer';
54
import { globals } from '../globals';
5+
import { Header } from '../components/Header';
6+
import '../styles/base.css';
67

78
const App: React.FC = ({ Component, pageProps }: any) => {
89
return (

pages/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import Head from 'next/head';
2-
import { PostData, loadBlogPosts, loadMarkdownFile } from '../loader';
3-
import { PostCard } from '../components/PostCard';
42
import { generateRSS } from '../rssUtil';
53
import { Markdown } from '../components/Markdown';
6-
import { globals } from '../globals';
74

85
const sectionStyle = {
96
width: '100%',

0 commit comments

Comments
 (0)