Skip to content

Simple update to add more context to content #57

Description

@idiom-bytes

Problem

Many .json files determine whether something is a download or not, however the FE doesn't reflect this. For a simple implementation use the inline conditional text, to label the Button as "Download" or "View"

Example: assets/index.tsx

<Button
  text={asset.download ? "Download" : "View"}
  link={asset.download ? `/assets/${asset.file}` : asset.file}
  self={asset.download}
/>

DoD:

  • All button text is wrapped in conditional clause to better communicate "Download" vs. "View"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions