Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Nov 14, 2024
1 parent 7ff7abf commit 78cb158
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/components/form/useFormStateErrors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { FormState, FormSubscription } from 'final-form'
import { useCallback, useEffect, useState } from 'react'
import { useFormState } from 'react-final-form'

const formStateSubscriptions = {
Expand Down
5 changes: 0 additions & 5 deletions src/components/sectionedForm/SectionForm.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
padding-inline: var(--spacers-dp16);
}

.verticalDivider {
align-self: stretch;
width: 0;
}

.formActions {
display: flex;
gap: 8px;
Expand Down
3 changes: 0 additions & 3 deletions src/components/sectionedForm/SectionedFormFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ const SectionedFormFooterSectionActions = ({
return <div className={css.sectionActions}>{children}</div>
}

const VerticalDivider = () => <span className={css.verticalDivider}></span>

export const SectionedFormFooter = ({ children }: React.PropsWithChildren) => {
return <div className={css.footerWrapper}>{children}</div>
}

SectionedFormFooter.FormActions = SectionedFormFooterFormActions
SectionedFormFooter.SectionActions = SectionedFormFooterSectionActions
SectionedFormFooter.VerticalDivider = VerticalDivider

0 comments on commit 78cb158

Please sign in to comment.