Skip to content

Commit

Permalink
refactor(ui): use phosphor icons instead react-icons on post page
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jun 13, 2023
1 parent f3093d3 commit e8ec6f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/(blog)/post/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ import type { Metadata } from 'next'
import type { MDXComponents } from 'mdx/types'
import Link from 'next/link'
import { useMDXComponent } from 'next-contentlayer/hooks'
import { FiTag } from 'react-icons/fi'

import { allPosts, type Post } from 'contentlayer/generated'

import { slug } from '@/shared/lib/slug'
import { Folder } from '@/shared/lib/phosphor-icons'
import { Folder, CalendarBlank, Clock, Tag } from '@/shared/lib/phosphor-icons'
import { Date } from '@/shared/components/date'
import { CalendarBlank, Clock } from '@/shared/components/icons'
import { TopButton } from './components/top-button'
import { Anchor } from './components/anchor'

Expand Down Expand Up @@ -102,7 +100,7 @@ export default function Page({ params }: Props) {
{tags.map((tag, index) => (
<Link href={`/tag/${slug(tag)}`} key={index}>
<span className="hover:cursor-pointe flex items-center justify-center gap-1 text-neutral-500 transition-colors duration-200 hover:text-neutral-900 dark:hover:text-neutral-100">
{tag} <FiTag size={15} />
{tag} <Tag size={15} />
</span>
</Link>
))}
Expand Down

0 comments on commit e8ec6f3

Please sign in to comment.