Use <EnvVar /> component in insights
This commit is contained in:
parent
3582ddb2a3
commit
6da15dfa86
@ -26,6 +26,7 @@ import {
|
|||||||
VERCEL_GIT_COMMIT_MESSAGE,
|
VERCEL_GIT_COMMIT_MESSAGE,
|
||||||
} from '@/app-core/config';
|
} from '@/app-core/config';
|
||||||
import { AdminAppInsight } from '.';
|
import { AdminAppInsight } from '.';
|
||||||
|
import EnvVar from '@/components/EnvVar';
|
||||||
|
|
||||||
const DEBUG_COMMIT_SHA = '4cd29ed';
|
const DEBUG_COMMIT_SHA = '4cd29ed';
|
||||||
const DEBUG_COMMIT_MESSAGE = 'Long commit message for debugging purposes';
|
const DEBUG_COMMIT_MESSAGE = 'Long commit message for debugging purposes';
|
||||||
@ -145,7 +146,7 @@ export default function AdminAppInsightsClient({
|
|||||||
content="You seem to have several vertical photos—consider enabling matting to make portrait and landscape photos appear more consistent"
|
content="You seem to have several vertical photos—consider enabling matting to make portrait and landscape photos appear more consistent"
|
||||||
additionalContent={<>
|
additionalContent={<>
|
||||||
Enabled photo matting by setting
|
Enabled photo matting by setting
|
||||||
<code className="text-main">`NEXT_PUBLIC_MATTE_PHOTOS = 1`</code>
|
<EnvVar variable="NEXT_PUBLIC_MATTE_PHOTOS" value="1" />
|
||||||
</>}
|
</>}
|
||||||
/>
|
/>
|
||||||
<ScoreCardRow
|
<ScoreCardRow
|
||||||
|
|||||||
@ -3,9 +3,11 @@ import CopyButton from './CopyButton';
|
|||||||
|
|
||||||
export default function EnvVar({
|
export default function EnvVar({
|
||||||
variable,
|
variable,
|
||||||
|
value,
|
||||||
includeCopyButton = true,
|
includeCopyButton = true,
|
||||||
}: {
|
}: {
|
||||||
variable: string,
|
variable: string,
|
||||||
|
value?: string,
|
||||||
includeCopyButton?: boolean,
|
includeCopyButton?: boolean,
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
@ -22,7 +24,7 @@ export default function EnvVar({
|
|||||||
'rounded-[4px]',
|
'rounded-[4px]',
|
||||||
'bg-gray-100 dark:bg-gray-800',
|
'bg-gray-100 dark:bg-gray-800',
|
||||||
)}>
|
)}>
|
||||||
{variable}
|
{variable}{value && ` = ${value}`}
|
||||||
</span>
|
</span>
|
||||||
{includeCopyButton &&
|
{includeCopyButton &&
|
||||||
<CopyButton label={variable} text={variable} subtle />}
|
<CopyButton label={variable} text={variable} subtle />}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user