Skip to content

Commit

Permalink
fix: run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
aaerhart committed Jan 19, 2025
1 parent c462fa0 commit 0c4b5ef
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 62 deletions.
120 changes: 60 additions & 60 deletions components/bill/BillDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,74 +46,74 @@ export const BillDetails = ({ bill }: BillProps) => {
<Banner>{t("bill.old_session", { billCourt: bill.court })}</Banner>
)}

<StyledContainer className="mt-3 mb-3">
<Row>
<Col>
<Back href="/bills">{t("back_to_bills")}</Back>
</Col>
</Row>
{bill.history.length > 0 ? (
<>
<Row className="align-items-end justify-content-start">
<Col md={2}>
<BillNumber bill={bill} />
</Col>
<Col
xs={10}
md={6}
className="mb-3 ms-auto d-flex justify-content-end"
>
<Status bill={bill} />
</Col>
</Row>
<Row className="mb-4">
<Col xs={12} className="d-flex justify-content-end">
{flags.notifications && user && (
<FollowBillButton bill={bill} />
)}
</Col>
</Row>
</>
) : (
<Row>
<Col>
<StyledContainer className="mt-3 mb-3">
<Row>
<Col>
<Back href="/bills">{t("back_to_bills")}</Back>
</Col>
</Row>
{bill.history.length > 0 ? (
<>
<Row className="align-items-end justify-content-start">
<Col md={2}>
<BillNumber bill={bill} />
</Col>
<Col xs={6} className="d-flex justify-content-end">
<Styled>
{flags.notifications && user && (
<FollowBillButton bill={bill} />
)}
</Styled>
<Col
xs={10}
md={6}
className="mb-3 ms-auto d-flex justify-content-end"
>
<Status bill={bill} />
</Col>
</Row>
)}
<Row className="mt-2">
<Col>
<Summary bill={bill} />
</Col>
</Row>
<Row className="mb-4">
<Col xs={12} className="d-flex justify-content-end">
{flags.notifications && user && (
<FollowBillButton bill={bill} />
)}
</Col>
</Row>
</>
) : (
<Row>
<Col md={8}>
<Sponsors bill={bill} className="mt-4 pb-1" />
<BillTestimonies bill={bill} className="mt-4" />
{flags.lobbyingTable && (
<LobbyingTable bill={bill} className="mt-4 pb-1" />
)}
<Col>
<BillNumber bill={bill} />
</Col>
<Col md={4}>
<Committees bill={bill} className="mt-4 pb-1" />
<Hearing
bill={bill}
className="bg-secondary d-flex justify-content-center mt-4 pb-1 text-light"
/>
<TestimonyFormPanel bill={bill} />
{flags.billTracker && (
<BillTrackerConnectedView bill={bill} className="mt-4" />
)}
<Col xs={6} className="d-flex justify-content-end">
<Styled>
{flags.notifications && user && (
<FollowBillButton bill={bill} />
)}
</Styled>
</Col>
</Row>
</StyledContainer>
)}
<Row className="mt-2">
<Col>
<Summary bill={bill} />
</Col>
</Row>
<Row>
<Col md={8}>
<Sponsors bill={bill} className="mt-4 pb-1" />
<BillTestimonies bill={bill} className="mt-4" />
{flags.lobbyingTable && (
<LobbyingTable bill={bill} className="mt-4 pb-1" />
)}
</Col>
<Col md={4}>
<Committees bill={bill} className="mt-4 pb-1" />
<Hearing
bill={bill}
className="bg-secondary d-flex justify-content-center mt-4 pb-1 text-light"
/>
<TestimonyFormPanel bill={bill} />
{flags.billTracker && (
<BillTrackerConnectedView bill={bill} className="mt-4" />
)}
</Col>
</Row>
</StyledContainer>
</>
)
}
4 changes: 2 additions & 2 deletions components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Layout: React.FC<React.PropsWithChildren<LayoutProps>> = ({
</Head>
<TabContext.Provider value={{ tabStatus, setTabStatus }}>
<FollowContext.Provider value={{ followStatus, setFollowStatus }}>
<PageContainer>
<PageContainer>
<MainNavbar />
<AuthModal />
<div className={`col`}>{children}</div>
Expand All @@ -59,7 +59,7 @@ export const Layout: React.FC<React.PropsWithChildren<LayoutProps>> = ({
signOut={signOutAndRedirectToHome}
/>
</PageContainer>
</FollowContext.Provider>
</FollowContext.Provider>
</TabContext.Provider>
</>
) : (
Expand Down

0 comments on commit 0c4b5ef

Please sign in to comment.