File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import SyntaxHighlighter from "react-syntax-highlighter";
22import { CopyToClipboard } from "react-copy-to-clipboard" ;
33import { useState } from "react" ;
44import { useTranslation } from "react-i18next" ;
5+ import { Button } from "react-bootstrap" ;
56
67export default function CodeBlock ( {
78 code,
@@ -33,9 +34,9 @@ export default function CodeBlock({
3334 < div className = "d-flex flex-row justify-content-between align-items-center p-2" >
3435 < h6 className = "mb-0 ml-2 text-white" > { title } </ h6 >
3536 < CopyToClipboard text = { code } >
36- < a className = "btn btn-primary" onClick = { ( ) => setCopied ( true ) } >
37+ < Button className = "btn btn-primary" onClick = { ( ) => setCopied ( true ) } >
3738 < small > { copied ? t ( "copied" ) : t ( "copy" ) } </ small >
38- </ a >
39+ </ Button >
3940 </ CopyToClipboard >
4041 </ div >
4142
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export default function ({
99 forms : { id : number ; title : string } [ ] ;
1010 onStart : ( index : number ) => void ;
1111} ) {
12- const { t, i18n } = useTranslation ( ) ;
13- console . log ( i18n ) ;
12+ const { t } = useTranslation ( ) ;
13+
1414 return (
1515 < Card style = { { minHeight : "300px" } } >
1616 < Card . Body className = "d-flex flex-column justify-content-between" >
Original file line number Diff line number Diff line change @@ -174,8 +174,6 @@ const WizardForm = ({
174174
175175 const firstQuestion = currentStepSchema ?. properties ?. [ questions [ 0 ] ] ;
176176
177- console . log ( "currentStepSchema" , currentStepSchema ) ;
178-
179177 return (
180178 < Card style = { { minHeight : "300px" } } >
181179 < Card . Header className = "d-flex flex-row justify-content-between" >
Original file line number Diff line number Diff line change 99 . use ( initReactI18next )
1010 . init ( {
1111 fallbackLng : "en" , // Default language if detection fails
12- debug : true ,
12+ // debug: true,
1313 resources : {
1414 en : {
1515 translation : enTranslation ,
You can’t perform that action at this time.
0 commit comments