1
- import React , { useState } from ' react' ;
2
- import Card from ' antd/lib/card' ;
3
- import Button from ' antd/lib/button' ;
4
- import Typography from ' antd/lib/typography' ;
5
- import { clientConfig } from ' @/services/auth' ;
6
- import HelpTrigger from ' @/components/HelpTrigger' ;
7
- import DynamicComponent from ' @/components/DynamicComponent' ;
8
- import OrgSettings from ' @/services/organizationSettings' ;
1
+ import React , { useState } from " react" ;
2
+ import Card from " antd/lib/card" ;
3
+ import Button from " antd/lib/button" ;
4
+ import Typography from " antd/lib/typography" ;
5
+ import { clientConfig } from " @/services/auth" ;
6
+ import HelpTrigger from " @/components/HelpTrigger" ;
7
+ import DynamicComponent from " @/components/DynamicComponent" ;
8
+ import OrgSettings from " @/services/organizationSettings" ;
9
9
10
10
const Text = Typography . Text ;
11
11
@@ -21,11 +21,11 @@ function BeaconConsent() {
21
21
setHide ( true ) ;
22
22
} ;
23
23
24
- const confirmConsent = ( confirm ) => {
25
- let message = ' 🙏 Thank you.' ;
24
+ const confirmConsent = confirm => {
25
+ let message = " 🙏 Thank you." ;
26
26
27
27
if ( ! confirm ) {
28
- message = ' Settings Saved.' ;
28
+ message = " Settings Saved." ;
29
29
}
30
30
31
31
OrgSettings . save ( { beacon_consent : confirm } , message )
@@ -40,14 +40,13 @@ function BeaconConsent() {
40
40
< DynamicComponent name = "BeaconConsent" >
41
41
< div className = "m-t-10 tiled" >
42
42
< Card
43
- title = { (
43
+ title = {
44
44
< >
45
- Would you be ok with sharing anonymous usage data with the Redash team?{ ' ' }
45
+ Would you be ok with sharing anonymous usage data with the Redash team?{ " " }
46
46
< HelpTrigger type = "USAGE_DATA_SHARING" />
47
47
</ >
48
- ) }
49
- bordered = { false }
50
- >
48
+ }
49
+ bordered = { false } >
51
50
< Text > Help Redash improve by automatically sending anonymous usage data:</ Text >
52
51
< div className = "m-t-5" >
53
52
< ul >
@@ -66,7 +65,8 @@ function BeaconConsent() {
66
65
</ div >
67
66
< div className = "m-t-15" >
68
67
< Text type = "secondary" >
69
- You can change this setting anytime from the < a href = "settings/organization" > Organization Settings</ a > page.
68
+ You can change this setting anytime from the < a href = "settings/organization" > Organization Settings</ a > { " " }
69
+ page.
70
70
</ Text >
71
71
</ div >
72
72
</ Card >
0 commit comments