Skip to content

Commit

Permalink
style(stacked-pane-display.js): remove semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Jul 7, 2021
1 parent 471c3f4 commit 7eb7b8d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions lib/components/user/stacked-pane-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,30 @@ const StackedPaneDisplay = ({ onCancel, paneSequence, title }) => {
return (
<>
{title && <PageHeading>{title}</PageHeading>}
{
paneSequence.map(({ pane: Pane, props, title }, index) => (
<StackedPaneContainer key={index}>
<h3>{title}</h3>
<div><Pane canceled={isBeingCanceled} {...props} /></div>
</StackedPaneContainer>
))
}
{paneSequence.map(({ pane: Pane, props, title }, index) => (
<StackedPaneContainer key={index}>
<h3>{title}</h3>
<div>
<Pane canceled={isBeingCanceled} {...props} />
</div>
</StackedPaneContainer>
))}

<FormNavigationButtons
backButton={{
onClick: () => { updateBeingCanceled(true); onCancel() },
onClick: () => {
updateBeingCanceled(true)
onCancel()
},
text: 'Cancel'
}}
okayButton={{
text: 'Save Preferences',
type: 'submit'
}}
/>
</>)
</>
)
}

StackedPaneDisplay.propTypes = {
Expand Down

0 comments on commit 7eb7b8d

Please sign in to comment.