Skip to content

Commit 55d8fbb

Browse files
committed
fix: Fixed not being able to click Toggle tab in codeTemplate
1 parent e89ac34 commit 55d8fbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/codeTemplates/codeTemplate.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function CodeTemplate({ templates }) {
2828

2929
return (
3030
<div>
31-
<Tabs activeKey={tab}>
31+
<Tabs activeKey={tab} onChange={setTab}>
3232
{tempaltesState.map((tempalte) => (
3333
<TabPane
3434
tab={

‎src/codeTemplates/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import handWriting from "./hand-writing";
1111
import rotate from "./rotate";
1212
import grapth from "./grapth";
1313
import prime from "./prime";
14-
console.log(binarySearch,"123");
14+
1515
const templates = [
1616
preSum,
1717
grapth,

0 commit comments

Comments
 (0)