Open about section links externally in Settings (#4571)
* Open nightly download link externally * Applied to other about links
This commit is contained in:
@ -24,6 +24,7 @@ import { ForwardedRef, forwardRef, useEffect } from 'react'
|
|||||||
import { useLspContext } from 'components/LspProvider'
|
import { useLspContext } from 'components/LspProvider'
|
||||||
import { toSync } from 'lib/utils'
|
import { toSync } from 'lib/utils'
|
||||||
import { reportRejection } from 'lib/trap'
|
import { reportRejection } from 'lib/trap'
|
||||||
|
import { openExternalBrowserIfDesktop } from 'lib/openWindow'
|
||||||
|
|
||||||
interface AllSettingsFieldsProps {
|
interface AllSettingsFieldsProps {
|
||||||
searchParamTab: SettingsLevel
|
searchParamTab: SettingsLevel
|
||||||
@ -245,6 +246,9 @@ export const AllSettingsFields = forwardRef(
|
|||||||
to inject the version from package.json */}
|
to inject the version from package.json */}
|
||||||
App version {APP_VERSION}.{' '}
|
App version {APP_VERSION}.{' '}
|
||||||
<a
|
<a
|
||||||
|
onClick={openExternalBrowserIfDesktop(
|
||||||
|
`https://github.com/KittyCAD/modeling-app/releases/tag/v${APP_VERSION}`
|
||||||
|
)}
|
||||||
href={`https://github.com/KittyCAD/modeling-app/releases/tag/v${APP_VERSION}`}
|
href={`https://github.com/KittyCAD/modeling-app/releases/tag/v${APP_VERSION}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
@ -255,6 +259,9 @@ export const AllSettingsFields = forwardRef(
|
|||||||
<p className="max-w-2xl mt-6">
|
<p className="max-w-2xl mt-6">
|
||||||
Don't see the feature you want? Check to see if it's on{' '}
|
Don't see the feature you want? Check to see if it's on{' '}
|
||||||
<a
|
<a
|
||||||
|
onClick={openExternalBrowserIfDesktop(
|
||||||
|
'https://github.com/KittyCAD/modeling-app/discussions'
|
||||||
|
)}
|
||||||
href="https://github.com/KittyCAD/modeling-app/discussions"
|
href="https://github.com/KittyCAD/modeling-app/discussions"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
@ -269,6 +276,9 @@ export const AllSettingsFields = forwardRef(
|
|||||||
Want to experience the latest and (hopefully) greatest from our
|
Want to experience the latest and (hopefully) greatest from our
|
||||||
main development branch?{' '}
|
main development branch?{' '}
|
||||||
<a
|
<a
|
||||||
|
onClick={openExternalBrowserIfDesktop(
|
||||||
|
'https://zoo.dev/modeling-app/download/nightly'
|
||||||
|
)}
|
||||||
href="https://zoo.dev/modeling-app/download/nightly"
|
href="https://zoo.dev/modeling-app/download/nightly"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
Reference in New Issue
Block a user