mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	Add copy button to codeblocks
This commit is contained in:
		| @@ -24,7 +24,7 @@ | ||||
| import React from "react"; | ||||
| import { withTranslation, WithTranslation } from "react-i18next"; | ||||
| import { Repository } from "@scm-manager/ui-types"; | ||||
| import { repositories, SubSubtitle } from "@scm-manager/ui-components"; | ||||
| import { PreformattedCodeBlock, repositories, SubSubtitle } from "@scm-manager/ui-components"; | ||||
|  | ||||
| type Props = WithTranslation & { | ||||
|   repository: Repository; | ||||
| @@ -37,12 +37,13 @@ class ProtocolInformation extends React.Component<Props> { | ||||
|     if (!href) { | ||||
|       return null; | ||||
|     } | ||||
|  | ||||
|     const svnCheckoutCommand = `svn checkout ${href}`; | ||||
|  | ||||
|     return ( | ||||
|       <div className="content"> | ||||
|         <SubSubtitle>{t("scm-svn-plugin.information.checkout")}</SubSubtitle> | ||||
|         <pre> | ||||
|           <code>svn checkout {href}</code> | ||||
|         </pre> | ||||
|         <PreformattedCodeBlock>{svnCheckoutCommand}</PreformattedCodeBlock> | ||||
|       </div> | ||||
|     ); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user