Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 14e4a0c

Browse files
committed
feat(ui/axiom): only render seed button in development environments
1 parent 6ed0641 commit 14e4a0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/axiom/src/components/Nav/index.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import LinkWithDefault from 'next/link'
99
import { NavPreferences } from 'payload'
1010
import { FC, Fragment } from 'react'
1111
import { getNavIcon } from './navIconMap'
12-
import { SeedButton } from '../seed-button'
12+
import { SeedButton } from '@/cms/ui'
1313

1414
type Props = {
1515
groups: NavGroupType[]
@@ -29,7 +29,7 @@ export const NavClient: FC<Props> = ({ groups, navPreferences }) => {
2929

3030
return (
3131
<Fragment>
32-
<SeedButton />
32+
{process.env.NODE_ENV==="development" && <SeedButton />}
3333
{groups.map(({ entities, label }, key) => {
3434
return (
3535
<NavGroup isOpen={navPreferences?.groups?.[label]?.open} key={key} label={label}>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Banner } from '@payloadcms/ui/elements/Banner'
22
import React from 'react'
33

4-
import { SeedButton } from './seed-button'
4+
import { SeedButton } from '@/cms/ui'
55

66
const baseClass = 'before-dashboard'
77

@@ -11,7 +11,7 @@ export const BeforeDashboard: React.FC = () => {
1111
<Banner className={`${baseClass}__banner`} type="success">
1212
<h4>Welcome to your dashboard!</h4>
1313
</Banner>
14-
<SeedButton />
14+
{process.env.NODE_ENV==="development" && <SeedButton />}
1515
</div>
1616
)
1717
}

0 commit comments

Comments
 (0)