Skip to content

Commit ec18b0b

Browse files
author
Marcin Mazurek
committed
[DDW-809] Fix issues after merging Webpack5
1 parent 3b6518a commit ec18b0b

File tree

10 files changed

+326
-18385
lines changed

10 files changed

+326
-18385
lines changed

source/renderer/app/components/profile/analytics/AnalyticsConsentForm.messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const messages = defineMessages({
99
description: {
1010
id: 'analytics.form.description',
1111
defaultMessage:
12-
'!!!Analytic data is used for product development purposes only.',
12+
'!!!All data is anonymous and is used only for product development purposes.',
1313
description: 'Analytics data collection description',
1414
},
1515
dataCollectionSwitchButton: {

source/renderer/app/components/profile/analytics/AnalyticsConsentForm.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ interface AnalyticsConsentFormProps {
1616
onExternalLinkClick: (url: string) => void;
1717
}
1818

19-
const AnalyticsConsentForm: FC<AnalyticsConsentFormProps> = ({
19+
function AnalyticsConsentForm({
2020
intl,
2121
loading,
2222
onSubmit,
2323
onExternalLinkClick,
24-
}: AnalyticsConsentFormProps) => {
24+
}: AnalyticsConsentFormProps) {
2525
const handleAllow = useCallback(() => {
2626
onSubmit(true);
2727
}, []);
@@ -76,6 +76,6 @@ const AnalyticsConsentForm: FC<AnalyticsConsentFormProps> = ({
7676
</div>
7777
</div>
7878
);
79-
};
79+
}
8080

8181
export default injectIntl(AnalyticsConsentForm);
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
import React, { FC } from 'react';
1+
import React, { FC, ReactNode } from 'react';
22
import classNames from 'classnames';
33
import styles from './MonospaceTextBlock.scss';
44

5-
export const MonospaceTextBlock: FC<{ className?: string }> = ({
5+
export function MonospaceTextBlock({
66
children,
77
className,
8-
}) => <pre className={classNames(styles.pre, className)}>{children}</pre>;
8+
}: {
9+
children: ReactNode;
10+
className?: string;
11+
}) {
12+
return <pre className={classNames(styles.pre, className)}>{children}</pre>;
13+
}

source/renderer/app/components/widgets/separator/Separator.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import React from 'react';
22
import classNames from 'classnames';
33
import styles from './Separator.scss';
44

5-
export const Separator: React.FC<{ className?: string }> = ({ className }) => (
6-
<hr className={classNames(styles.hr, className)} />
7-
);
5+
export function Separator({ className }: { className?: string }) {
6+
return <hr className={classNames(styles.hr, className)} />;
7+
}

source/renderer/app/containers/profile/AnalyticsConsentPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { AnalyticsAcceptanceStatus } from '../../analytics/types';
66
import { useActions } from '../../hooks/useActions';
77
import { useStores } from '../../hooks/useStores';
88

9-
const AnalyticsConsentPage: FC = () => {
9+
export function AnalyticsConsentPage() {
1010
const actions = useActions();
1111
const { networkStatus, profile, app } = useStores();
1212

@@ -31,6 +31,6 @@ const AnalyticsConsentPage: FC = () => {
3131
/>
3232
</TopBarLayout>
3333
);
34-
};
34+
}
3535

3636
export default AnalyticsConsentPage;

0 commit comments

Comments
 (0)