Skip to content

Commit

Permalink
Merge pull request #53 from nismod/49-return-perioddamages-improvements
Browse files Browse the repository at this point in the history
Group Epoch and RP select boxes in same row
  • Loading branch information
tomalrussell authored Mar 25, 2024
2 parents fcc4e23 + 4ee01b4 commit 077b2fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/details/features/damages/RPDamagesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { ReturnPeriodDamage } from '@nismod/irv-api-client';
import _ from 'lodash';
import { selector, useRecoilValue } from 'recoil';

import { InputRow } from '@/sidebar/ui/InputRow';

import { ButtonPlacement, DownloadButton } from '../DownloadButton';
import {
buildOrdering,
Expand Down Expand Up @@ -149,7 +151,12 @@ export const RPDamagesSection = () => {
</ButtonPlacement>
)}
</Box>
<EpochSelect />

<InputRow>
<EpochSelect />
<ReturnPeriodSelect />
</InputRow>

{selectedRPData ? (
<>
<ReturnPeriodDamageChart
Expand All @@ -164,7 +171,6 @@ export const RPDamagesSection = () => {
height={150}
renderer="svg"
/>
<ReturnPeriodSelect />
<RPDamageTable damages={filteredTableData} />
</>
) : (
Expand Down

0 comments on commit 077b2fc

Please sign in to comment.