Skip to content

Commit 74e543d

Browse files
committed
fix: fixed the problem of not being able to find the JSX namespace when packaging
1 parent ce7a72e commit 74e543d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"lodash-es": "^4.17.21",
171171
"react-transition-group": "^4.4.2",
172172
"smoothscroll-polyfill": "^0.4.4",
173-
"tdesign-icons-react": "^0.4.4",
173+
"tdesign-icons-react": "^0.5.0-alpha.1",
174174
"tinycolor2": "^1.6.0"
175175
},
176176
"config": {

src/loading/Loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const Loading: React.FC<LoadingProps> = (props) => {
120120
let renderIndicator = themeMap[theme];
121121

122122
if (indicator && typeof indicator !== 'boolean') {
123-
renderIndicator = indicator as JSX.Element;
123+
renderIndicator = indicator as React.JSX.Element;
124124
}
125125
return (
126126
<>

src/tabs/Tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const Tabs: FC<TabsProps> = (props) => {
5050

5151
const propsArr = [];
5252

53-
React.Children.forEach(children, (child: JSX.Element) => {
53+
React.Children.forEach(children, (child: React.JSX.Element) => {
5454
if (child.type.displayName === TabPanel.displayName) {
5555
propsArr.push(child.props);
5656
}

0 commit comments

Comments
 (0)