Skip to content

Commit

Permalink
separate grid-container from form-container
Browse files Browse the repository at this point in the history
for #20
  • Loading branch information
jlev committed Sep 21, 2020
1 parent d8f7fa1 commit 81280aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/form/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Router, useLocation, navigate } from "@reach/router"
import { window, exists } from "browser-monads"
import "url-search-params-polyfill"

import { GridContainer, Button, ButtonGroup } from "@trussworks/react-uswds"
import { Button, ButtonGroup } from "@trussworks/react-uswds"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { nanoid } from 'nanoid'

Expand Down Expand Up @@ -148,9 +148,9 @@ function PlanForm() {

if (state.isSubmitLoading) {
return (
<GridContainer className="form-container" path="submit">
<div className="form-container" path="submit">
<p>Loading...</p>
</GridContainer>
</div>
)
}

Expand All @@ -163,7 +163,7 @@ function PlanForm() {
let isValid = stepValid(state)

return (
<GridContainer className="form-container">
<div className="form-container">
<ProgressBar value={currentStep} max={STEPS.length - 1} />

<Router basepath="/form">
Expand Down Expand Up @@ -200,7 +200,7 @@ function PlanForm() {
{stepError ? stepError : "Please select your answers"}
</div>
)}
</GridContainer>
</div>
)
}

Expand Down

0 comments on commit 81280aa

Please sign in to comment.