Skip to content

Commit 48305f5

Browse files
committed
update info
1 parent b2076af commit 48305f5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/components/blog-card/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useState } from 'react';
22
import LazyImage from '../lazy-image';
3-
import { PiNewspaper } from 'react-icons/pi';
3+
import { PiBriefcase } from 'react-icons/pi';
44
import { SanitizedBlog } from '../../interfaces/sanitized-config';
55
import { ga, skeleton } from '../../utils';
66
import { Article } from '../../interfaces/article';
@@ -172,7 +172,7 @@ const BlogCard = ({
172172
))
173173
) : (
174174
<div className="text-center mb-6">
175-
<PiNewspaper className="mx-auto h-12 w-12 opacity-30" />
175+
<PiBriefcase className="mx-auto h-12 w-12 opacity-30" />
176176
<p className="mt-1 text-sm opacity-50 text-base-content">
177177
No recent post
178178
</p>
@@ -194,7 +194,7 @@ const BlogCard = ({
194194
})
195195
) : (
196196
<div className="flex items-center justify-center w-12 h-12 bg-primary/10 rounded-xl">
197-
<PiNewspaper className="text-2xl" />
197+
<PiBriefcase className="text-2xl" />
198198
</div>
199199
)}
200200
<div className="min-w-0 flex-1">

src/components/gitprofile.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ const GitProfile = ({ config }: { config: Config }) => {
239239
</div>
240240
<div className="lg:col-span-2 col-span-1">
241241
<div className="grid grid-cols-1 gap-6">
242+
{sanitizedConfig.blog.display && (
243+
<BlogCard
244+
loading={loading}
245+
googleAnalyticsId={sanitizedConfig.googleAnalytics.id}
246+
blog={sanitizedConfig.blog}
247+
/>
248+
)}
242249
{sanitizedConfig.projects.github.display && (
243250
<GithubProjectCard
244251
header={sanitizedConfig.projects.github.header}
@@ -264,13 +271,6 @@ const GitProfile = ({ config }: { config: Config }) => {
264271
googleAnalyticId={sanitizedConfig.googleAnalytics.id}
265272
/>
266273
)}
267-
{sanitizedConfig.blog.display && (
268-
<BlogCard
269-
loading={loading}
270-
googleAnalyticsId={sanitizedConfig.googleAnalytics.id}
271-
blog={sanitizedConfig.blog}
272-
/>
273-
)}
274274
</div>
275275
</div>
276276
</div>

0 commit comments

Comments
 (0)