Skip to content

Commit

Permalink
Merge pull request #510 from alleslabs/feat/json-schema-nullable
Browse files Browse the repository at this point in the history
feat: json schema nullable
  • Loading branch information
songwongtp committed Aug 30, 2023
2 parents b1a5658 + 3cd49e3 commit d597705
Show file tree
Hide file tree
Showing 14 changed files with 1,051 additions and 128 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#510](https://github.com/alleslabs/celatone-frontend/pull/510) Support optional fields for array, boolean, and string
- [#505](https://github.com/alleslabs/celatone-frontend/pull/505) Adjust attach funds form label and icon styling for schema section
- [#501](https://github.com/alleslabs/celatone-frontend/pull/501) Add more JSON Schema state, e.g. empty object state, boolean field
- [#502](https://github.com/alleslabs/celatone-frontend/pull/502) Display queried time and add json/schema output switch
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/fund/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,20 @@ interface AttachFundProps {
attachFundsOption: AttachFundsType;
labelBgColor?: string;
setValue: UseFormSetValue<AttachFundsState>;
showLabel?: boolean;
}

export const AttachFund = ({
control,
attachFundsOption,
labelBgColor,
setValue,
showLabel = true,
}: AttachFundProps) => (
<>
<Flex mb={5}>
<SelectInput
formLabel="Attach Funds"
formLabel={showLabel ? "Attach Funds" : undefined}
options={attachFundsOptions}
onChange={(value: AttachFundsType) =>
setValue(ATTACH_FUNDS_OPTION, value)
Expand Down
Loading

0 comments on commit d597705

Please sign in to comment.