File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
src/packages/next/pages/software Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 33 * License: MS-RSL – see LICENSE.md for details
44 */
55
6- import { Button , Layout , Space } from "antd" ;
6+ import { Layout , Radio } from "antd" ;
77
88import {
99 LanguageName ,
@@ -19,6 +19,8 @@ import A from "components/misc/A";
1919import { MAX_WIDTH } from "lib/config" ;
2020import { Customize } from "lib/customize" ;
2121import withCustomize from "lib/with-customize" ;
22+
23+ // Images
2224import juliaLogo from "public/features/julia-logo.svg" ;
2325import sageScreenshot from "public/features/sage-worksheet.png" ;
2426import executablesScreenshot from "public/software/executables.png" ;
@@ -56,24 +58,26 @@ const LINKS: { [lang in LanguageName | "executables"]: string } = {
5658function renderSoftwareEnvLinks ( lang : LanguageName | "executables" ) {
5759 return (
5860 < Paragraph >
59- < Space >
61+ < Radio . Group
62+ optionType = "button"
63+ size = "small"
64+ value = { SOFTWARE_ENV_DEFAULT }
65+ buttonStyle = "solid"
66+ >
6067 { SOFTWARE_ENV_NAMES . map ( ( name ) => {
61- const type = SOFTWARE_ENV_DEFAULT === name ? "primary" : undefined ;
62- const style = type === "primary" ? { fontWeight : "bold" } : { } ;
6368 // toLowerCase is necessary for R → r
6469 const href = `/software/${ lang . toLowerCase ( ) } /${ name } ` ;
6570 return (
66- < Button
67- size = "small"
68- type = { type }
69- href = { href }
70- style = { { ...style , padding : "5px" } }
71+ < Radio . Button
72+ key = { name }
73+ value = { name }
74+ onClick = { ( ) => ( window . location . href = href ) }
7175 >
7276 { name }
73- </ Button >
77+ </ Radio . Button >
7478 ) ;
7579 } ) }
76- </ Space >
80+ </ Radio . Group >
7781 </ Paragraph >
7882 ) ;
7983}
You can’t perform that action at this time.
0 commit comments