Skip to content

Commit c8198ce

Browse files
committed
chore: update
1 parent 6dc35c8 commit c8198ce

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/blog-list/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type BlogListProps = {
5858
subtitle?: ReactNode;
5959
featured?: boolean;
6060
interactive?: boolean;
61-
hideDocLayoutChrome?: boolean;
61+
hideDocLayoutSidebarAndOutline?: boolean;
6262
};
6363

6464
const DEFAULT_DATE_FORMAT_OPTIONS: Intl.DateTimeFormatOptions = {
@@ -250,7 +250,7 @@ export function BlogList({
250250
subtitle,
251251
featured = true,
252252
interactive = true,
253-
hideDocLayoutChrome = false,
253+
hideDocLayoutSidebarAndOutline = true,
254254
}: BlogListProps) {
255255
if (posts.length === 0) {
256256
return emptyState ? <>{emptyState}</> : null;
@@ -319,7 +319,7 @@ export function BlogList({
319319
))}
320320
</section>
321321
) : null}
322-
{hideDocLayoutChrome ? (
322+
{hideDocLayoutSidebarAndOutline ? (
323323
<style>{`
324324
.rp-doc-layout__sidebar-placeholder { display: none; }
325325
.rp-doc-layout__outline { display: none; }

stories/BlogList.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const BlogListStory = () => (
7474
<BlogList
7575
posts={posts}
7676
lang="en"
77-
hideDocLayoutChrome
77+
hideDocLayoutSidebarAndOutline
7878
renderInlineMarkdown={renderInlineMarkdown}
7979
title="Blog"
8080
subtitle={
@@ -101,7 +101,7 @@ export const BlogListWithBackgroundStory = () => (
101101
posts={posts}
102102
lang="en"
103103
LinkComp={StoryLink}
104-
hideDocLayoutChrome
104+
hideDocLayoutSidebarAndOutline
105105
renderInlineMarkdown={renderInlineMarkdown}
106106
title="Blog"
107107
subtitle={

0 commit comments

Comments
 (0)