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