Skip to content

Commit

Permalink
enhance(bcd): prefix release date title
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 27, 2025
1 parent bf9bfeb commit 66614ec
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ function getSupportClassName(
return className;
}

function getSupportBrowserReleaseDate(
support: SupportStatementExtended | undefined
): string | undefined {
if (!support) {
return undefined;
}
return getCurrentSupport(support)!.release_date;
}

function StatusIcons({ status }: { status: BCD.StatusBlock }) {
const icons = [
status.experimental && {
Expand Down Expand Up @@ -139,7 +130,7 @@ const CellText = React.memo(
const added = currentSupport?.version_added ?? null;
const lastVersion = currentSupport?.version_last ?? null;

const browserReleaseDate = getSupportBrowserReleaseDate(support);
const browserReleaseDate = currentSupport?.release_date;
const supportClassName = getSupportClassName(support, browser);

let status:
Expand Down Expand Up @@ -235,7 +226,7 @@ const CellText = React.memo(
className="bc-version-label"
title={
browserReleaseDate && !timeline
? `Released ${browserReleaseDate}`
? `${browser.name} ${added}Released ${browserReleaseDate}`
: undefined
}
>
Expand Down

0 comments on commit 66614ec

Please sign in to comment.