Skip to content

Commit

Permalink
v7.10: updated react version and fixed BottomBar return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurStam committed Sep 7, 2024
1 parent 34fafb4 commit 828fad5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
"jsx": true
}
},
"ignorePatterns": ["telegram-web-apps.js"]
"ignorePatterns": ["telegram-web-apps.js"],
"rules": {
"react/react-in-jsx-scope": "off"
}
}
26 changes: 11 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@twa-dev/sdk",
"version": "7.10.0-beta.1",
"version": "7.10.0-beta.2",
"main": "dist/index.js",
"sideEffects": [
"./dist/telegram-web-apps.js"
Expand Down Expand Up @@ -35,14 +35,14 @@
"author": "Artur Stambultsian <[email protected]>",
"license": "MIT",
"devDependencies": {
"@types/react": "^18.0.19",
"@types/react": "^18.3.5",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react": "^7.31.8",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react": "^18.3.1",
"typescript": "^4.7.4"
},
"scripts": {
Expand All @@ -53,6 +53,6 @@
"@twa-dev/types": "^7.10.0"
},
"peerDependencies": {
"react": ">=16.0.0"
"react": "^18.3.1"
}
}
2 changes: 1 addition & 1 deletion src/react/BottomBar/BottomBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export const BottomBar = ({
};
}, []);

return children;
return <>{children}</>;
};

0 comments on commit 828fad5

Please sign in to comment.