diff --git a/frontend/src/components/PlatformSelect/PlatformIcon.tsx b/frontend/src/components/PlatformSelect/PlatformIcon.tsx
index 4affb457..c946cf1b 100644
--- a/frontend/src/components/PlatformSelect/PlatformIcon.tsx
+++ b/frontend/src/components/PlatformSelect/PlatformIcon.tsx
@@ -41,6 +41,7 @@ export const PLATFORMS = Object.keys(ICONS)
export type Props = {
platform: string
className?: string
+ clickable?: boolean
size?: string | number
}
@@ -48,13 +49,19 @@ export function platformIcon(platform: string) {
return ICONS[platform as keyof typeof ICONS] || UnknownIcon
}
-export function PlatformIcon({ platform, className, size }: Props) {
+export function PlatformIcon({ platform, className, clickable, size }: Props) {
const Icon = platformIcon(platform)
const url = platformUrl(platform)
- return (
-
+ if (clickable) {
+ return (
+
+
+
+ )
+ } else {
+ return (
-
- )
+ )
+ }
}
diff --git a/frontend/src/components/PlatformSelect/PlatformSelect.tsx b/frontend/src/components/PlatformSelect/PlatformSelect.tsx
index 85be5f39..1babdf17 100644
--- a/frontend/src/components/PlatformSelect/PlatformSelect.tsx
+++ b/frontend/src/components/PlatformSelect/PlatformSelect.tsx
@@ -25,7 +25,7 @@ export default function PlatformSelect({ platforms, value, onChange, className }
className={classNames(styles.platform, { [styles.selected]: value === key })}
onClick={() => onChange(key)}
>
-
+
{platform.name}
{platform.description}
diff --git a/frontend/src/components/PresetList.tsx b/frontend/src/components/PresetList.tsx
index 5a660da0..a01289a3 100644
--- a/frontend/src/components/PresetList.tsx
+++ b/frontend/src/components/PresetList.tsx
@@ -36,7 +36,7 @@ export function PresetList({ url, className, item, emptyButtonLabel }: Props): R
return (
{results.map(preset => (
-
+
))}
{results.length === 0 && emptyButtonLabel && -
@@ -56,14 +56,16 @@ export function PresetList({ url, className, item, emptyButtonLabel }: Props): R
)
}
-export function PresetItem({ preset }: { preset: api.Preset }): React.JSX.Element {
+export function PresetItem({ preset, hideIcon }: { preset: api.Preset, hideIcon?: boolean }): React.JSX.Element {
const compilersTranslation = useTranslation("compilers")
const compilerName = compilersTranslation.t(preset.compiler)
return (