Skip to content

Commit 9ee430d

Browse files
committed
Fix theme prop
1 parent 71b6bba commit 9ee430d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/[localeCode]/(story)/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default async function StoryPage({ params, searchParams }: Props) {
4949
show_download_pdf: themeSettings.show_download_pdf,
5050
}}
5151
sharingOptions={{
52-
share_icons_placement: themeSettings.share_icons_placement,
52+
sharing_placement: themeSettings.sharing_placement,
5353
sharing_actions: themeSettings.sharing_actions,
5454
}}
5555
/>

modules/Story/Story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function Story({ actions, sharingOptions, showDate, story, withHead
6161
<FormattedDate value={story.published_at} />
6262
</p>
6363
)}
64-
{canShare && sharingOptions.share_icons_placement?.includes('top') && (
64+
{canShare && sharingOptions.sharing_placement.includes('top') && (
6565
<SocialShare
6666
socialNetworks={sharingOptions.sharing_actions}
6767
url={sharingUrl}

modules/Story/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import type { ThemeSettings } from 'theme-settings';
22

3-
export type SharingOptions = Pick<ThemeSettings, 'share_icons_placement' | 'sharing_actions'>;
3+
export type SharingOptions = Pick<ThemeSettings, 'sharing_placement' | 'sharing_actions'>;

theme-settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export enum Font {
1212
SOURCE_CODE_PRO = 'source_code_pro',
1313
}
1414

15-
export type ShareIconsPlacement = ('top' | 'bottom')[];
15+
export type SharingPlacement = ('top' | 'bottom')[];
1616

1717
export enum SocialNetwork {
1818
FACEBOOK = 'facebook',
@@ -46,7 +46,7 @@ export interface ThemeSettings {
4646
show_featured_categories: boolean;
4747
show_subtitle: boolean;
4848
sharing_actions: SocialNetwork[];
49-
share_icons_placement: ShareIconsPlacement;
49+
sharing_placement: SharingPlacement;
5050
show_download_pdf: boolean;
5151
show_download_assets: boolean;
5252
show_copy_content: boolean;

0 commit comments

Comments
 (0)