Skip to content

Commit

Permalink
feat: Update from Testnet to Stable in the dropdown menu (#461)
Browse files Browse the repository at this point in the history
* review

* cleanup
  • Loading branch information
calldelegation authored Oct 8, 2024
1 parent d6e132c commit 66e1299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/VersionDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function VersionDropdown({
}) {
const [opened, setOpened] = useState(false);
const [activeVersion, setActiveVersion] = useState<
typeof FUEL_TESTNET_UPPER_CASE | 'Nightly'
typeof FUEL_TESTNET_UPPER_CASE | typeof FUEL_TESTNET | 'Nightly'
>(versionSet === 'default' ? FUEL_TESTNET_UPPER_CASE : 'Nightly');
const router = useRouter();
const setVersion = useSetVersion();
Expand All @@ -41,7 +41,7 @@ export default function VersionDropdown({
opened ? { ...styles.trigger, ...styles.triggerOpen } : styles.trigger
}
>
Version: {activeVersion}
Version: {activeVersion === FUEL_TESTNET_UPPER_CASE ? 'Stable' : activeVersion}
</Dropdown.Trigger>
<Dropdown.Menu
disabledKeys={versionSet === 'default' ? [FUEL_TESTNET] : [versionSet]}
Expand Down Expand Up @@ -74,7 +74,7 @@ export default function VersionDropdown({
key={FUEL_TESTNET}
aria-label={FUEL_TESTNET}
>
<Text>{FUEL_TESTNET_UPPER_CASE}</Text>
<Text>Stable</Text> {/* Display 'Stable' instead of raw version */}
{versionSet === 'default' && <Icon icon='Check' color='accent11' />}
</Dropdown.MenuItem>

Expand Down

0 comments on commit 66e1299

Please sign in to comment.