Skip to content

Commit adc5881

Browse files
committed
remove some debug elements.
1 parent 14b563d commit adc5881

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/components/CodeBlock.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import SyntaxHighlighter from "react-syntax-highlighter";
22
import { CopyToClipboard } from "react-copy-to-clipboard";
33
import { useState } from "react";
44
import { useTranslation } from "react-i18next";
5+
import { Button } from "react-bootstrap";
56

67
export 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

src/components/Intro.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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">

src/components/WizardForm.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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">

src/i18n/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ i18next
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,

0 commit comments

Comments
 (0)