Skip to content

Commit b7badad

Browse files
committed
move to social types
1 parent b979be1 commit b7badad

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎frontend/main/src/services/notion.server.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { config } from '@/config/notion';
55
import { Post, PostType } from '@/models/post.model';
66
import { QueryDatabaseResponse } from '@notionhq/client/build/src/api-endpoints';
77
import { config as notionConfig } from '@/config/notion';
8-
import { Site } from '@/models/site.model';
8+
import { Site, SocialType } from '@/models/site.model';
99
import { Tag } from '@/models/tag.model';
1010
import { NotionBlock } from '@9gustin/react-notion-render';
1111
import { getCloudinaryPublicId } from '@/utils/cloudinary/cloudinary';
@@ -1094,35 +1094,35 @@ export const getSite = () => {
10941094
socialLinks: [
10951095
{
10961096
href: 'https://discord.com/invite/vM2bagU',
1097-
type: 'discord',
1097+
type: SocialType.discord,
10981098
},
10991099
// {
11001100
// href: 'https://www.facebook.com/groups/codingcatdev',
11011101
// type: 'facebook',
11021102
// },
11031103
{
11041104
href: 'https://github.com/sponsors/CodingCatDev',
1105-
type: 'github',
1105+
type: SocialType.github,
11061106
},
11071107
{
11081108
href: 'https://www.linkedin.com/company/codingcatdev/',
1109-
type: 'LinkedIn',
1109+
type: SocialType.linkedin,
11101110
},
11111111
// {
11121112
// href: 'https://medium.com/codingcatdev',
11131113
// type: 'medium',
11141114
// },
11151115
{
11161116
href: 'https://twitter.com/CodingCatDev',
1117-
type: 'Twitter',
1117+
type: SocialType.twitter,
11181118
},
11191119
{
11201120
href: 'https://twitch.tv/codingcatdev',
1121-
type: 'twitch',
1121+
type: SocialType.twitch,
11221122
},
11231123
{
11241124
href: 'https://youtube.com/c/codingcatdev',
1125-
type: 'youtube',
1125+
type: SocialType.youtube,
11261126
},
11271127
],
11281128
id: 'none',

0 commit comments

Comments
 (0)