Skip to content

Commit

Permalink
Display deposit in listing details page
Browse files Browse the repository at this point in the history
fixes #117
  • Loading branch information
franthormel committed Jun 18, 2024
1 parent a16b231 commit 37a7901
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/_app/listing/main-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function ListingMainInfo(props: ListingMainInfoProps) {
<ListingMainInfoColumn value={availableDateText(props.availableDate, new Date())} label="Date Available"
dataCyValue="listing-main-info-col-value-available-date"
dataCyLabel="listing-main-info-col-label-available-date" />
{/* TODO: Display deposit */}
</div>
{/* Address */}
<div className="text-gray-700">
Expand Down
2 changes: 2 additions & 0 deletions cypress/component/_app/listing/ListingMainInfo.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import ListingMainInfo from "@/components/_app/listing/main-info";

// TODO: Add deposit

describe('Listing Main Info', () => {
describe("display correct UI when", () => {
afterEach(() => {
Expand Down
2 changes: 2 additions & 0 deletions stories/_app/listing/ListingMainInfo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const meta: Meta<typeof ListingMainInfo> = {
export default meta;
type Story = StoryObj<typeof meta>;

// TODO: Add deposit

const defaultArgs: ListingMainInfoProps = {
price: 10000,
beds: 2,
Expand Down

0 comments on commit 37a7901

Please sign in to comment.