fix(design-preview): убрать плашку «Обновлено · Live · авто» из шапки
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
f6466d9d7c
commit
41d9325d14
1 file changed
-18
@@ -48,7 +48,6 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from '@authportal/ui/components/dropdown-menu'
|
||||
import { Kbd } from '@authportal/ui/components/kbd'
|
||||
import { Switch } from '@authportal/ui/components/switch'
|
||||
import { Popover, PopoverContent, PopoverTrigger } from '@authportal/ui/components/popover'
|
||||
import { Separator } from '@authportal/ui/components/separator'
|
||||
import {
|
||||
@@ -440,22 +439,6 @@ function FreshnessPopover() {
|
||||
)
|
||||
}
|
||||
|
||||
/** Плашка «Обновлено · Live · авто» в шапке: видна на широких экранах, как на досках. */
|
||||
function FreshPill() {
|
||||
const [auto, setAuto] = useState(true)
|
||||
return (
|
||||
<span
|
||||
role="status"
|
||||
className="text-muted-foreground hidden h-[30px] items-center gap-2 rounded-lg border px-2.5 text-xs min-[1320px]:inline-flex"
|
||||
>
|
||||
<span className="bg-success size-1.5 rounded-full" aria-hidden />
|
||||
Обновлено 14:02 · Live
|
||||
<Switch size="sm" checked={auto} onCheckedChange={setAuto} aria-label="Автообновление" />
|
||||
авто
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
export function PreviewHeader() {
|
||||
const pathname = useRouterState({ select: (s) => s.location.pathname })
|
||||
const { setPaletteOpen } = usePreviewStore()
|
||||
@@ -473,7 +456,6 @@ export function PreviewHeader() {
|
||||
</BreadcrumbList>
|
||||
</Breadcrumb>
|
||||
<div className="ml-auto flex shrink-0 items-center gap-2">
|
||||
<FreshPill />
|
||||
<FreshnessPopover />
|
||||
<Button
|
||||
type="button"
|
||||
|
||||
Reference in new issue
Block a user