Skip to content

Commit

Permalink
♻️ refactor: 개인 블로그 탭 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
junyeokk committed Dec 26, 2024
1 parent 8042a8e commit 13c893f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/RssRegistration/PlatformSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface PlatformSelectorProps {
export const PlatformSelector = ({ platform, onPlatformChange }: PlatformSelectorProps) => {
return (
<Tabs defaultValue="tistory" value={platform} onValueChange={onPlatformChange}>
<TabsList className="grid w-full grid-cols-3">
<TabsList className="grid w-full grid-cols-4 ">
{Object.entries(PLATFORMS).map(([key, { name }]) => (
<TabsTrigger key={key} value={key}>
{name}
Expand Down
10 changes: 8 additions & 2 deletions client/src/constants/rss.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const PLATFORM_TYPES = ["tistory", "velog", "medium"] as const;
export const PLATFORM_TYPES = ["tistory", "velog", "medium", "personal_blog"] as const;
export type PlatformType = (typeof PLATFORM_TYPES)[number];

interface Platform {
Expand All @@ -13,7 +13,7 @@ export const PLATFORMS: Record<PlatformType, Platform> = {
name: "Tistory",
prefix: "https://",
suffix: ".tistory.com/rss",
placeholder: "블로그명",
placeholder: "서브도메인",
},
velog: {
name: "Velog",
Expand All @@ -27,4 +27,10 @@ export const PLATFORMS: Record<PlatformType, Platform> = {
suffix: "",
placeholder: "사용자명",
},
personal_blog: {
name: "개인 블로그",
prefix: "https://",
suffix: "",
placeholder: "블로그 주소",
},
};

0 comments on commit 13c893f

Please sign in to comment.