Skip to content

Commit 78fa9f9

Browse files
authored
fix typescript error on className -> viewClassName usage (#164)
1 parent 49a7679 commit 78fa9f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ declare namespace ReactDeviceDetect {
7979
export interface ViewProps {
8080
renderWithFragment?: boolean;
8181
children?: React.ReactNode;
82-
viewClassName?: string;
82+
className?: string;
8383
style?: React.CSSProperties;
8484
}
8585

8686
export interface CustomViewProps {
8787
renderWithFragment?: boolean;
8888
children?: React.ReactNode;
89-
viewClassName?: string;
89+
className?: string;
9090
style?: React.CSSProperties;
9191
condition?: boolean;
9292
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-device-detect",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Detect device type and render your component according to it",
55
"main": "dist/lib.js",
66
"typings": "./index.d.ts",

0 commit comments

Comments
 (0)