Skip to content

Commit

Permalink
removed bill status element; to be handled by visual bill status trac…
Browse files Browse the repository at this point in the history
…ker in Q2
  • Loading branch information
mertbagt committed Jan 12, 2023
1 parent 78914a5 commit 6d4a738
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion components/bill/BillNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { billLink, External } from "../links"
import { FC } from "../types"
import { BillProps } from "./types"

const Styled = styled.div`
export const Styled = styled.div`
font-size: 4rem;
a {
text-decoration: none;
Expand Down
27 changes: 12 additions & 15 deletions components/bill/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import styled from "styled-components"
import { Button, Col, Container, Row, Stack } from "../bootstrap"
import { TestimonyFormPanel } from "../publish"
import { Back } from "./Back"
import { BillNumber } from "./BillNumber"
import { BillNumber, Styled } from "./BillNumber"
import { BillTestimonies } from "./BillTestimonies"
import { formatBillId } from "../formatting"
import { SponsorsAndCommittees } from "./SponsorsAndCommittees"
import { Status } from "./Status"
import { Summary } from "./Summary"
import { BillProps } from "./types"
import { useAuth } from "../auth"
Expand Down Expand Up @@ -56,21 +55,19 @@ export const Layout = ({ bill }: BillProps) => {
<BillNumber bill={bill} />
</Col>
<Col xs={6} className="d-flex justify-content-end">
<Status bill={bill} />
<Styled>
<Button
className={`btn btn-primary btn-sm ms-auto py-2
${uid ? "" : "visually-hidden"}
`}
onClick={checkBill ? handleUnfollowClick : handleFollowClick}
>
{checkBill ? "Following " : "Follow "}
{formatBillId(bill.id)}
</Button>
</Styled>
</Col>
</Row>
<Stack className={`mb-4`} direction={`horizontal`}>
<Col className={`col-8`} />
<Button
className={`btn btn-primary btn-sm ms-auto py-2
${uid ? "" : "visually-hidden"}
`}
onClick={checkBill ? handleUnfollowClick : handleFollowClick}
>
{checkBill ? "Following " : "Follow "}
{formatBillId(bill.id)}
</Button>
</Stack>
<Row className="mt-2">
<Col>
<Summary bill={bill} />
Expand Down

0 comments on commit 6d4a738

Please sign in to comment.