119 | {protonDBTier && show && !loading &&
120 | <>
121 | {style}
122 |
{
126 | refresh()
127 | Navigation.NavigateToExternalWeb(
128 | `https://www.protondb.com/app/${appId}`
129 | )
130 | }}
131 | >
132 |
133 | {linuxSupport ? (
134 |
137 | ) : (
138 | <>>
139 | )}
140 | {/* The ProtonDB logo has a distracting background, so React's logo is being used as a close substitute */}
141 |
142 |
143 |
144 | {settings.size === 'small' ||
145 | (settings.size === 'minimalist' &&
146 | settings.labelTypeOnHover !== 'regular')
147 | ? t(`tierMin${protonDBTier}`)
148 | : t(`tier${protonDBTier}`)}
149 |
150 |
151 | >
152 | }
153 |
154 | )
155 | }
156 |
--------------------------------------------------------------------------------
/src/components/protonMedal/style.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | export default (
4 |
165 | )
166 |
--------------------------------------------------------------------------------
/src/components/settings/index.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | ButtonItem,
3 | ButtonItemProps,
4 | DropdownItem,
5 | PanelSection,
6 | PanelSectionProps,
7 | PanelSectionRow
8 | } from '@decky/ui'
9 | import React, { FC, ReactNode } from 'react'
10 | import { clearCache } from '../../cache/protobDbCache'
11 | import useTranslations from '../../hooks/useTranslations'
12 | import { useSettings } from '../../hooks/useSettings'
13 | import Spinner from '../spinner'
14 |
15 | type ExtendedPanelSectionProps = PanelSectionProps & {
16 | children: ReactNode
17 | }
18 |
19 | const DeckPanelSection = PanelSection as FC