1
0
Fork 0

style(static): format payload admin static components

This commit is contained in:
Jason Fraley 2026-08-16 23:27:51 -04:00
parent 9f4faa948b
commit cdeebd05f8
3 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,9 @@ import { Button } from "@payloadcms/ui";
export const GoToFrontendLink = () => { export const GoToFrontendLink = () => {
return ( return (
<Link href="/" className="absolute top-0 right-0 p-3.5 z-10"> <Link href="/" className="absolute top-0 right-0 p-3.5 z-10">
<Button margin={false} buttonStyle="dashed">Go to Frontend</Button> <Button margin={false} buttonStyle="dashed">
Go to Frontend
</Button>
</Link> </Link>
); );
}; };

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { useField, useFormFields } from "@payloadcms/ui"; import { useField } from "@payloadcms/ui";
const calculateTicks = (value: number) => { const calculateTicks = (value: number) => {
const totalMinutes = value * 10; const totalMinutes = value * 10;

View file

@ -60,9 +60,7 @@ const VersionOverlay = () => {
return ( return (
<div className="fixed top-0 z-9999 w-full flex justify-center"> <div className="fixed top-0 z-9999 w-full flex justify-center">
<div className="text-white flex flex-col items-center justify-center bg-red-950 w-fit px-2 rounded-b group overflow-hidden"> <div className="text-white flex flex-col items-center justify-center bg-red-950 w-fit px-2 rounded-b group overflow-hidden">
<span className="text-center text-sm pointer-events-none"> <span className="text-center text-sm pointer-events-none">version {versionLabel}</span>
version {versionLabel}
</span>
{showSecondary && ( {showSecondary && (
<span className="text-center text-xs h-0 group-hover:h-full pointer-events-none transition-all duration-100 ease-in-out"> <span className="text-center text-xs h-0 group-hover:h-full pointer-events-none transition-all duration-100 ease-in-out">
{lastUpdated && <>last updated {lastUpdated}</>} {lastUpdated && <>last updated {lastUpdated}</>}