]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19909 Minor fixes for azure
authorJeremy Davis <jeremy.davis@sonarsource.com>
Tue, 18 Jul 2023 16:19:42 +0000 (18:19 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 21 Jul 2023 20:03:16 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx

index 2b84388ef07a7f13029350526ae9791e67476fa7..c2da7e4147e84f36f0a50e43736b3bdfa0dd6909 100644 (file)
@@ -51,7 +51,7 @@ type OsConstant = {
 
 export default function ClangGCC(props: ClangGCCProps) {
   const { projectKey, onStepValidationChange } = props;
-  const [os, setOs] = React.useState<OSs | undefined>();
+  const [os, setOs] = React.useState<OSs | undefined>(OSs.Linux);
   const host = getHostUrl();
 
   const codeSnippetDownload: OsConstant = {
@@ -126,10 +126,7 @@ unzip build-wrapper.zip`,
                     highlightPrefixKeys={codeSnippetDownload[os].highlightScriptKey}
                     highlightKeys={['task', 'inline']}
                   />
-                  <CodeSnippet
-                    className="sw-px-4 sw-py-6"
-                    snippet={codeSnippetDownload[os].script}
-                  />
+                  <CodeSnippet className="sw-p-6" snippet={codeSnippetDownload[os].script} />
                 </UnorderedListItem>
               </UnorderedList>
             </NumberedListItem>
@@ -159,7 +156,7 @@ unzip build-wrapper.zip`,
                     highlightKeys={['build_wrapper']}
                   />
                   <CodeSnippet
-                    className="sw-px-4 sw-py-6"
+                    className="sw-p-6"
                     isOneLine
                     snippet={codeSnippetDownload[os].scriptBuild}
                   />