Skip to content

Commit

Permalink
Examples blogs: fix spelling (vercel#17049)
Browse files Browse the repository at this point in the history
Throughout some of the blog examples word `formatter` is spelled as `formater`, this PR changes all of them to `formatter`
  • Loading branch information
Zeko369 authored and Piotr Bosak committed Sep 26, 2020
1 parent d2a7e63 commit e04f08b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ type Props = {
dateString: string
}

const DateFormater = ({ dateString }: Props) => {
const DateFormatter = ({ dateString }: Props) => {
const date = parseISO(dateString)
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
}

export default DateFormater
export default DateFormatter
4 changes: 2 additions & 2 deletions examples/blog-starter-typescript/components/hero-post.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from './avatar'
import DateFormater from './date-formater'
import DateFormatter from './date-formatter'
import CoverImage from './cover-image'
import Link from 'next/link'
import Author from '../types/author'
Expand Down Expand Up @@ -34,7 +34,7 @@ const HeroPost = ({
</Link>
</h3>
<div className="mb-4 md:mb-0 text-lg">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
</div>
<div>
Expand Down
4 changes: 2 additions & 2 deletions examples/blog-starter-typescript/components/post-header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from './avatar'
import DateFormater from './date-formater'
import DateFormatter from './date-formatter'
import CoverImage from './cover-image'
import PostTitle from './post-title'
import Author from '../types/author'
Expand All @@ -26,7 +26,7 @@ const PostHeader = ({ title, coverImage, date, author }: Props) => {
<Avatar name={author.name} picture={author.picture} />
</div>
<div className="mb-6 text-lg">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
</div>
</>
Expand Down
4 changes: 2 additions & 2 deletions examples/blog-starter-typescript/components/post-preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from './avatar'
import DateFormater from './date-formater'
import DateFormatter from './date-formatter'
import CoverImage from './cover-image'
import Link from 'next/link'
import Author from '../types/author'
Expand Down Expand Up @@ -32,7 +32,7 @@ const PostPreview = ({
</Link>
</h3>
<div className="text-lg mb-4">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
<p className="text-lg leading-relaxed mb-4">{excerpt}</p>
<Avatar name={author.name} picture={author.picture} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parseISO, format } from 'date-fns'

export default function DateFormater({ dateString }) {
export default function DateFormatter({ dateString }) {
const date = parseISO(dateString)
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
}
4 changes: 2 additions & 2 deletions examples/blog-starter/components/hero-post.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from '../components/avatar'
import DateFormater from '../components/date-formater'
import DateFormatter from '../components/date-formatter'
import CoverImage from '../components/cover-image'
import Link from 'next/link'

Expand All @@ -24,7 +24,7 @@ export default function HeroPost({
</Link>
</h3>
<div className="mb-4 md:mb-0 text-lg">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
</div>
<div>
Expand Down
4 changes: 2 additions & 2 deletions examples/blog-starter/components/post-header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from '../components/avatar'
import DateFormater from '../components/date-formater'
import DateFormatter from '../components/date-formatter'
import CoverImage from '../components/cover-image'
import PostTitle from '../components/post-title'

Expand All @@ -18,7 +18,7 @@ export default function PostHeader({ title, coverImage, date, author }) {
<Avatar name={author.name} picture={author.picture} />
</div>
<div className="mb-6 text-lg">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
</div>
</>
Expand Down
4 changes: 2 additions & 2 deletions examples/blog-starter/components/post-preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from '../components/avatar'
import DateFormater from '../components/date-formater'
import DateFormatter from '../components/date-formatter'
import CoverImage from './cover-image'
import Link from 'next/link'

Expand All @@ -22,7 +22,7 @@ export default function PostPreview({
</Link>
</h3>
<div className="text-lg mb-4">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
<p className="text-lg leading-relaxed mb-4">{excerpt}</p>
<Avatar name={author.name} picture={author.picture} />
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-kontent/components/date-formater.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parseISO, format } from 'date-fns'

export default function DateFormater({ dateString }) {
export default function DateFormatter({ dateString }) {
const date = parseISO(dateString)
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
}
4 changes: 2 additions & 2 deletions examples/cms-kontent/components/hero-post.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from '../components/avatar'
import DateFormater from '../components/date-formater'
import DateFormatter from '../components/date-formatter'
import CoverImage from '../components/cover-image'
import Link from 'next/link'

Expand All @@ -24,7 +24,7 @@ export default function HeroPost({
</Link>
</h3>
<div className="mb-4 md:mb-0 text-lg">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
</div>
<div>
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-kontent/components/post-header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from '../components/avatar'
import DateFormater from '../components/date-formater'
import DateFormatter from '../components/date-formatter'
import CoverImage from '../components/cover-image'
import PostTitle from '../components/post-title'

Expand All @@ -18,7 +18,7 @@ export default function PostHeader({ title, coverImage, date, author }) {
<Avatar name={author.name} picture={author.picture} />
</div>
<div className="mb-6 text-lg">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
</div>
</>
Expand Down
4 changes: 2 additions & 2 deletions examples/cms-kontent/components/post-preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Avatar from '../components/avatar'
import DateFormater from '../components/date-formater'
import DateFormatter from '../components/date-formatter'
import CoverImage from './cover-image'
import Link from 'next/link'

Expand All @@ -22,7 +22,7 @@ export default function PostPreview({
</Link>
</h3>
<div className="text-lg mb-4">
<DateFormater dateString={date} />
<DateFormatter dateString={date} />
</div>
<p className="text-lg leading-relaxed mb-4">{excerpt}</p>
<Avatar name={author.name} picture={author.picture} />
Expand Down

0 comments on commit e04f08b

Please sign in to comment.