Skip to content

Commit

Permalink
Merge pull request #826 from eisbuk/fix/slot-form-action-buttons
Browse files Browse the repository at this point in the history
Make the slot form action buttons always visible
  • Loading branch information
silviot authored Sep 18, 2023
2 parents a730168 + f1b22cc commit 00ddc09
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"test:triggers": "bash -c '(trap \"kill 0\" SIGINT; ../functions/build_scripts/watch.js & firebase -c ../../firebase-testing.json emulators:exec --project eisbuk -- \" vitest dataTriggers\")'",
"test:rules": "bash -c '(trap \"kill 0\" SIGINT; ../functions/build_scripts/watch.js & firebase -c ../../firebase-testing.json emulators:exec --project eisbuk -- \" vitest firestoreRules\")'",
"test:integrations": "bash -c '(trap \"kill 0\" SIGINT; ../functions/build_scripts/watch.js & firebase -c ../../firebase-testing.json emulators:exec --project eisbuk -- \" vitest integrations\")'",
"test:emulators:ci": "export CI=true && export VITEST_JUNIT_SUITE_NAME=\"Client tests\" && bash -c '(trap \"kill 0\" SIGINT; ../functions/build_scripts/watch.js & firebase -c ../../firebase-testing.json emulators:exec --project eisbuk -- \" vitest run --coverage --reporter=junit --reporter=html --outputFile.junit=junit.xml/\")'",
"test:emulators:ci": "CI=true VITEST_JUNIT_SUITE_NAME=\"Client tests\" bash -c '(trap \"kill 0\" SIGINT; ../functions/build_scripts/watch.js & firebase -c ../../firebase-testing.json emulators:exec --project eisbuk -- \" vitest run --coverage --reporter=junit --reporter=html --outputFile.junit=junit.xml/\")' || true # We always exit with code 0: a subsequent CI step will fail if a test fails.",
"test:quicktest": "echo Running tests with no emulators support && vitest --ui",
"test": "echo 'Running all tests; using emulators.' && rushx test:emulators:ui",
"storybook": "storybook dev -p 6006",
Expand Down
32 changes: 16 additions & 16 deletions packages/ui/src/Forms/SlotForm/SlotForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,23 @@ const SlotForm: React.FC<SlotFormProps> = ({
multiline
label={"Notes"}
/>
</div>

<div className="flex items-center justify-end">
<Button
onClick={onClose}
className="text-cyan-700"
size={ButtonSize.LG}
>
{t(ActionButton.Cancel)}
</Button>
<Button
type="submit"
className="bg-cyan-700"
size={ButtonSize.LG}
>
{t(ActionButton.Save)}
</Button>
</div>
<div className="flex px-6 py-3 border-t items-center justify-end">
<Button
onClick={onClose}
className="text-cyan-700"
size={ButtonSize.LG}
>
{t(ActionButton.Cancel)}
</Button>
<Button
type="submit"
className="bg-cyan-700"
size={ButtonSize.LG}
>
{t(ActionButton.Save)}
</Button>
</div>
</Form>
);
Expand Down

0 comments on commit 00ddc09

Please sign in to comment.