Skip to content

Commit

Permalink
bc08be1 remove dead code, simplify it a little
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectly-preserved-pie committed Sep 12, 2024
1 parent bc08be1 commit e61bcca
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions pages/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ def create_title_card(self, title, subtitle, include_button=True, button_text=""
html.A("About This Project", href='https://automateordie.io/wheretolivedotla/', target='_blank'),
]

if include_button:
title_card_children.append(
dbc.Button(
button_text,
href=button_href,
color="primary",
external_link=True,
className="bi bi-building-fill w-100 mt-2",
)
)

title_card = dbc.Card(title_card_children, body=True)
return title_card

Expand Down Expand Up @@ -1041,8 +1030,7 @@ def create_map_card(self):
def create_title_card(self):
return super().create_title_card(
title="WhereToLive.LA",
subtitle="An interactive map of available rentals in Los Angeles County. Updated weekly.",
include_button=False
subtitle="An interactive map of available rentals in Los Angeles County. Updated weekly."
)

# Create a class to hold all the components for the buy page
Expand Down Expand Up @@ -1771,6 +1759,5 @@ def create_map_card(self):
def create_title_card(self):
return super().create_title_card(
title="WhereToLive.LA",
subtitle="An interactive map of available residential properties for sale in Los Angeles County. Updated weekly.",
include_button=False
subtitle="An interactive map of available residential properties for sale in Los Angeles County. Updated weekly."
)

0 comments on commit e61bcca

Please sign in to comment.