Skip to content

Commit 0af510f

Browse files
authored
Remove edit button from a releases and blogs (#4678)
* Remove edit button from a releases, blogs, and rac home
1 parent 59991e2 commit 0af510f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/dev/docs/src/Layout.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,12 @@ export function BaseLayout({scripts, styles, pages, currentPage, publicUrl, chil
503503
</ImageContext.Provider>
504504
</MDXProvider>
505505
{toc.length ? <ToC toc={toc} /> : null}
506-
{!pathToPage.includes('index.mdx') && <div id="edit-page" className={docStyles.editPageContainer} />}
506+
{!(
507+
pathToPage.includes('index.mdx') ||
508+
pathToPage.includes('/blog/') ||
509+
pathToPage.includes('/releases/') ||
510+
pathToPage.includes('react-aria-components.mdx')
511+
) && <div id="edit-page" className={docStyles.editPageContainer} />}
507512
<Footer />
508513
</main>
509514
</div>

0 commit comments

Comments
 (0)