mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-02 12:24:03 -04:00
fix macOS naming
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -17,7 +17,7 @@ export type Platform = {
|
||||
|
||||
export const platforms = {
|
||||
darwin: {
|
||||
name: 'Mac',
|
||||
name: 'macOS',
|
||||
os: 'darwin',
|
||||
icon: Apple,
|
||||
version: '12+',
|
||||
|
||||
Reference in New Issue
Block a user