fix macOS naming

This commit is contained in:
lynx
2024-09-01 03:02:32 -05:00
parent 51d4dd4c4b
commit f75ea199b3
2 changed files with 8 additions and 2 deletions

View File

@@ -23,8 +23,14 @@ export function CtaPrimaryButton({
'href' in props
? props.href
: `https://spacedrive.com/api/releases/desktop/stable/${props.platform?.os ?? 'linux'}/x86_64`;
const platformName =
'platform' in props
? props.platform?.name === 'macOS'
? 'Mac'
: props.platform?.name
: undefined;
const children =
'children' in props ? props.children : `Download for ${props.platform?.name ?? 'Linux'}`;
'children' in props ? props.children : `Download for ${platformName ?? 'Linux'}`;
return (
<Link

View File

@@ -17,7 +17,7 @@ export type Platform = {
export const platforms = {
darwin: {
name: 'Mac',
name: 'macOS',
os: 'darwin',
icon: Apple,
version: '12+',