Skip to content

Commit

Permalink
chore(viewmodels): remove unused icon, media item
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 18, 2023
1 parent 6daaaec commit b7e5ed0
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions benefits/core/viewmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,33 +53,6 @@ def previous_page(url):
return Button(text=_("core.buttons.previous_page"), url=url)


class Icon:
"""Represents an icon."""

def __init__(self, icon, alt):
self.src = f"img/icon/{icon}.svg"
self.alt = alt


class MediaItem:
"""
Represents a media item in a list of items:
* icon: core.viewmodels.Icon
* details: str, str[]
* heading: str
"""

def __init__(self, icon: Icon, details, heading=None):
self.icon = icon
if isinstance(details, str):
self.details = [details]
elif isinstance(details, list):
self.details = details
else:
self.details = [str(details)]
self.heading = heading


class Page:
"""
Represents a page of content:
Expand Down

0 comments on commit b7e5ed0

Please sign in to comment.