feat(ui): IdentitySection accepts checkpointsSlot rendered inside configGrid
This commit is contained in:
@@ -25,12 +25,14 @@ interface IdentitySectionProps {
|
||||
stagedJar: File | null;
|
||||
onStagedJarChange: (file: File | null) => void;
|
||||
deploying: boolean;
|
||||
checkpointsSlot?: ReactNode;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
export function IdentitySection({
|
||||
mode, environment, app, currentVersion,
|
||||
name, onNameChange, stagedJar, onStagedJarChange, deploying, children,
|
||||
name, onNameChange, stagedJar, onStagedJarChange, deploying,
|
||||
checkpointsSlot, children,
|
||||
}: IdentitySectionProps) {
|
||||
const fileInputRef = useRef<HTMLInputElement>(null);
|
||||
const slug = app?.slug ?? slugify(name);
|
||||
@@ -109,6 +111,8 @@ export function IdentitySection({
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{checkpointsSlot}
|
||||
</div>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user