Skip to content

Commit

Permalink
fix tab issue
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Dec 20, 2023
1 parent 5b8c6e8 commit e77ff3f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/home/code.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const Code = props => {
timeId = setInterval(() => {
const keys = Object.keys(EXAMPLES);
keyIndex === 2 ? (keyIndex = 0) : keyIndex++;
setValue(0)
setActivExample(EXAMPLES[keys[keyIndex]]);
}, 10000);
return () => {
Expand Down Expand Up @@ -117,7 +118,12 @@ const Code = props => {
};
case EXAMPLES.manage:
return {
tabs: ['Create collection', 'Create index', 'Insert data', 'Upsert data'],
tabs: [
'Create collection',
'Create index',
'Insert data',
'Upsert data',
],
learnMoreLink: `/docs/create_collection.md`,
};
case EXAMPLES.install:
Expand Down

0 comments on commit e77ff3f

Please sign in to comment.