Skip to content

Commit 9d4abb6

Browse files
authored
Merge pull request #46 from grafana/src/fix-build-errors
Chore: Remove build errors from plugins due to pinned react
2 parents 4af7582 + 1839a9d commit 9d4abb6

File tree

4 files changed

+3341
-2808
lines changed

4 files changed

+3341
-2808
lines changed

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "ui-enterprise",
2+
"name": "plugin-ui",
33
"version": "1.0.0",
4-
"repository": "[email protected]:grafana/ui-enterprise.git",
4+
"repository": "[email protected]:grafana/plugin-ui.git",
55
"author": "Grafana Labs",
66
"private": true,
77
"main": "dist/index.js",
@@ -22,14 +22,11 @@
2222
"@types/chance": "^1.1.0",
2323
"@types/memoize-one": "^5.1.2",
2424
"@types/react-calendar": "^3.1.2",
25+
"react-use": "17.3.1",
2526
"chance": "^1.1.7",
2627
"copyfiles": "^2.4.1",
2728
"memoize-one": "^5.1.1",
2829
"rc-cascader": "1.0.1",
29-
"react": "^16.14.0",
30-
"react-calendar": "^3.2.1",
31-
"react-dom": "^16.14.0",
32-
"react-use": "^15.3.4",
3330
"semver": "^7.3.5",
3431
"typescript": "4.0.2"
3532
},

src/components/DatePicker/DatePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Body = memo<DatePickerProps>(({ value, onChange }) => {
4343
value={value || new Date()}
4444
nextLabel={<Icon name='angle-right' />}
4545
prevLabel={<Icon name='angle-left' />}
46-
onChange={(ev) => {
46+
onChange={(ev: any) => {
4747
if (!Array.isArray(ev)) {
4848
onChange(ev);
4949
}

src/components/DatePickerWithInput/DatePickerWithInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const DatePickerWithInput = (props: DatePickerWithInputProps) => {
3030
<DatePicker
3131
isOpen={open}
3232
value={value}
33-
onChange={(ev) => onChange(ev)}
33+
onChange={(ev: any) => onChange(ev)}
3434
onClose={() => setOpen(false)}
3535
/>
3636
</>

0 commit comments

Comments
 (0)