Skip to content

Commit

Permalink
Merge pull request #74 from AplinkosMinisterija/researches/newFields
Browse files Browse the repository at this point in the history
add totalFishesAbundance, totalBiomass to researches
  • Loading branch information
LWangllix authored Apr 16, 2024
2 parents a4e336a + 3e9efda commit 7052ccf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/forms/ResearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,22 @@ const ResearchForm = () => {
<FormLabel>Žuvų išteklių būklės indeksas</FormLabel>
</Grid>
<Grid $columns={2}>
<NumericTextField
label={'Bendras žuvų gausumas'}
name="totalFishesAbundance"
value={values.totalFishesAbundance}
error={errors.totalFishesAbundance}
onChange={(value) => setFieldValue('totalFishesAbundance', value)}
digitsAfterComma={2}
/>
<NumericTextField
label={'Bendra biomasė'}
name="totalBiomass"
value={values.totalBiomass}
error={errors.totalBiomass}
onChange={(value) => setFieldValue('totalBiomass', value)}
digitsAfterComma={2}
/>
<NumericTextField
label={'Plėšrių žuvų santykinis gausumas'}
name="predatoryFishesRelativeAbundance"
Expand Down
2 changes: 2 additions & 0 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ export interface Research {
totalBiomass: string;
};
fishes?: ResearchFish[];
totalFishesAbundance?: number;
totalBiomass?: number;
tenant?: Tenant;
user?: User;
previous?: Research;
Expand Down

0 comments on commit 7052ccf

Please sign in to comment.