Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+7
-9
@@ -1,20 +1,18 @@
|
||||
"use client";
|
||||
import React from "react";
|
||||
import { EmptyState as EmptyStateComponent, type EmptyStateRootProps } from "./EmptyState";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
/**
|
||||
* Add wrapper components and business logic here.
|
||||
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
||||
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
||||
*
|
||||
* Wrapper rationale (2026-07-07, R-P5 verification): the synced Subframe
|
||||
* component always renders a hardcoded, non-wired english CTA ("Create
|
||||
* project" / "Try again" / "Clear filters") - no onClick, no i18n (violates
|
||||
* DoD B10/E23). Until the design-system component gets a proper action slot
|
||||
* (design-nachzug), the wrapper hides that dead internal button; screens render
|
||||
* their own translated action next to the EmptyState.
|
||||
* History: this wrapper used to add `[&_button]:hidden` to suppress the synced
|
||||
* component's hardcoded, non-wired english CTA ("Create project"). The synced
|
||||
* component has since gained a proper `action` slot and no hardcoded button,
|
||||
* so the class only hid the real action buttons screens pass in (create/retry
|
||||
* CTAs). Do not re-add a blanket button-hiding class here.
|
||||
*/
|
||||
export const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateRootProps>(function EmptyState({ className, ...props }, ref) {
|
||||
return <EmptyStateComponent ref={ref} className={SubframeUtils.twClassNames("[&_button]:hidden", className)} {...props} />;
|
||||
export const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateRootProps>(function EmptyState(props, ref) {
|
||||
return <EmptyStateComponent ref={ref} {...props} />;
|
||||
});
|
||||
Reference in new issue
Block a user