Stack direction to orientation

This commit is contained in:
burnettk 2022-11-04 18:27:10 -04:00
parent 8be06184d5
commit 8262e2b691
8 changed files with 10 additions and 10 deletions

View File

@ -82,7 +82,7 @@ export default function ProcessGroupShow() {
]} ]}
/> />
<ul> <ul>
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<Button <Button
href={`/admin/process-models/${(processGroup as any).id}/new`} href={`/admin/process-models/${(processGroup as any).id}/new`}
> >

View File

@ -366,7 +366,7 @@ export default function ProcessInstanceShow() {
processGroupId={params.process_group_id} processGroupId={params.process_group_id}
linkProcessModel linkProcessModel
/> />
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<h2>Process Instance Id: {processInstanceToUse.id}</h2> <h2>Process Instance Id: {processInstanceToUse.id}</h2>
<ButtonWithConfirmation <ButtonWithConfirmation
description="Delete Process Instance?" description="Delete Process Instance?"

View File

@ -80,7 +80,7 @@ export default function ProcessModelEdit() {
/> />
<br /> <br />
<br /> <br />
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<Button type="submit">Submit</Button> <Button type="submit">Submit</Button>
<Button variant="secondary" href={`/admin/${processModelPath}`}> <Button variant="secondary" href={`/admin/${processModelPath}`}>
Cancel Cancel

View File

@ -514,10 +514,10 @@ export default function ProcessModelEditDiagram() {
<Col xs={1}>{scriptUnitTestResultBoolElement}</Col> <Col xs={1}>{scriptUnitTestResultBoolElement}</Col>
</Row> </Row>
</Content> </Content>
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
{unitTestFailureElement()} {unitTestFailureElement()}
</Stack> </Stack>
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<Stack> <Stack>
<div>Input Json:</div> <div>Input Json:</div>
<div> <div>

View File

@ -211,7 +211,7 @@ export default function ProcessModelShow() {
const processModelButtons = () => { const processModelButtons = () => {
return ( return (
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<Button onClick={processInstanceCreateAndRun} variant="primary"> <Button onClick={processInstanceCreateAndRun} variant="primary">
Run Run
</Button> </Button>

View File

@ -68,7 +68,7 @@ export default function SecretNew() {
}} }}
/> />
</Form.Group> </Form.Group>
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<Button variant="primary" type="submit"> <Button variant="primary" type="submit">
Submit Submit
</Button> </Button>

View File

@ -65,8 +65,8 @@ export default function SecretShow() {
if (secret) { if (secret) {
return ( return (
<> <>
<Stack direction="horizontal" gap={3}> <h2>Secret Key: {secret.key}</h2>
<h2>Secret Key: {secret.key}</h2> <Stack orientation="horizontal" gap={3}>
<ButtonWithConfirmation <ButtonWithConfirmation
description="Delete Secret?" description="Delete Secret?"
onConfirmation={deleteSecret} onConfirmation={deleteSecret}

View File

@ -85,7 +85,7 @@ export default function TaskShow() {
}); });
} }
return ( return (
<Stack direction="horizontal" gap={3}> <Stack orientation="horizontal" gap={3}>
<Button href="/tasks">Go Back To List</Button> <Button href="/tasks">Go Back To List</Button>
{userTasksElement} {userTasksElement}
</Stack> </Stack>