Skip to content

Commit

Permalink
update language and types
Browse files Browse the repository at this point in the history
  • Loading branch information
Javid Momeni committed Dec 7, 2024
1 parent 36fb779 commit 77259a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/library/story-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const IMAGE_STYLES = [
] as const;

export function StoryDetail({ story }: StoryDetailProps) {
const initialStyle = story.images ? 'storybook_illustration' : 'storybook_illustration'; // Default style
const initialStyle = story.images ? '3d_rendered' : '3d_rendered'; // Default style
const [selectedStyle, setSelectedStyle] = useState<keyof StoryImages>(initialStyle);

return (
Expand Down
4 changes: 2 additions & 2 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export async function fetchStories(): Promise<Story[]> {
return data.map((item) => ({
id: item.name.replace('.md', ''),
title: formatTitle(item.name),
description: `A story about ${item.topic}`,
description: `قصه‌ای درباره‌ی ${item.topic}`,
ageRange: extractAgeFromFilename(item.name),
theme: item.topic,
topic: item.topic,
coverImage: getImageUrl(item.topic, item.name, 'cartoon'),
coverImage: getImageUrl(item.topic, item.name, '3d_rendered'),
images: {
...item.images,
cartoon: getImageUrl(item.topic, item.name, 'cartoon'),
Expand Down

0 comments on commit 77259a0

Please sign in to comment.