Skip to content

Commit

Permalink
tech: hide incomplete gpu on sdl editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jtary committed Sep 25, 2023
1 parent 5e5a0c3 commit f96685b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/SdlConfiguration/SdlConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const SdlConfiguration: React.FC<SdlConfigurationProps> = ({
const [getRpcNode] = useRpcNode();
const forbidEditing = configurationType === SdlConfigurationType.Update;
const hasGPU = getRpcNode().networkType === 'testnet';
const showGPU = false;

return (
<React.Fragment>
Expand Down Expand Up @@ -200,7 +201,7 @@ export const SdlConfiguration: React.FC<SdlConfigurationProps> = ({
disabled={forbidEditing}
/>

{hasGPU && <Gpu currentProfile={profile} disabled={forbidEditing} />}
{hasGPU && showGPU && <Gpu currentProfile={profile} disabled={forbidEditing} />}

<h1 className="font-medium">Ports</h1>
<Ports serviceName={serviceName} services={services} />
Expand Down

0 comments on commit f96685b

Please sign in to comment.