Skip to content

Commit

Permalink
Use BallotInterpretation data model on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahkagan committed Apr 23, 2020
1 parent 63c82d7 commit 89c50e4
Show file tree
Hide file tree
Showing 16 changed files with 1,135 additions and 404 deletions.
11 changes: 5 additions & 6 deletions arlo-client/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
proseWrap: 'always',
semi: false,
singleQuote: true,
trailingComma: 'es5',
}

proseWrap: 'always',
semi: false,
singleQuote: true,
trailingComma: 'es5',
}
17 changes: 3 additions & 14 deletions arlo-client/src/components/Atoms/Form/FormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface IProps {
>
disabled?: boolean
value?: string | number
onChange?: (e: React.ChangeEvent) => void
onChange?: (e: React.FormEvent) => void
onBlur?: (e: React.FocusEvent) => void
name?: string
type?: string
Expand Down Expand Up @@ -80,20 +80,9 @@ const FormField: React.FC<IProps> = ({
onBlur={() => setFieldTouched(field.name)}
/>
) : type === 'textarea' ? (
<Area
disabled={disabled}
{...field}
{...rest}
onChange={field.onChange}
/>
<Area disabled={disabled} onChange={rest.onChange} {...field} {...rest} />
) : (
<Field
disabled={disabled}
type={type}
{...field}
{...rest}
onChange={field.onChange}
/>
<Field disabled={disabled} type={type} {...field} {...rest} />
)}
{getIn(errors, field.name) && getIn(touched, field.name) && (
<ErrorLabel data-testid={`${field.name}-error`}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,7 @@ exports[`CalculateRiskMeasurement renders online mode progress bar 1`] = `
>
<div
class="bp3-progress-meter"
style="width: 50%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -2525,7 +2525,7 @@ exports[`CalculateRiskMeasurement renders online mode progress bar in multiple r
>
<div
class="bp3-progress-meter"
style="width: 50%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down
Loading

0 comments on commit 89c50e4

Please sign in to comment.