Skip to content

Commit 55f6a42

Browse files
committed
utm builder: do not style a type like a const & export it for external usage (UtmFields)
1 parent 4cac874 commit 55f6a42

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

addon/components/utils/utm-link-builder.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ import { IntlService } from 'ember-intl';
99

1010
import { FeedbackMessage } from '@upfluence/oss-components/components/o-s-s/input-container';
1111

12+
export type UtmFields = {
13+
utm_source: string;
14+
utm_medium: string;
15+
utm_campaign: string;
16+
};
17+
1218
interface UtilsUtmLinkBuilderArgs {
1319
url: string;
1420
title?: string;
1521
subtitle?: string;
1622
displayPreview?: boolean;
17-
onChange(url: string, utmsEnabled: boolean, formValid: boolean, utmFields: UTM_FIELDS): void;
23+
onChange(url: string, utmsEnabled: boolean, formValid: boolean, utmFields: UtmFields): void;
1824
}
1925

20-
type UTM_FIELDS = {
21-
utm_source: string;
22-
utm_medium: string;
23-
utm_campaign: string;
24-
};
25-
2626
export default class UtilsUtmLinkBuilder extends Component<UtilsUtmLinkBuilderArgs> {
2727
@service declare intl: IntlService;
2828

@@ -83,7 +83,7 @@ export default class UtilsUtmLinkBuilder extends Component<UtilsUtmLinkBuilderAr
8383
this.validationErrors = { ...this.validationErrors };
8484
}
8585

86-
get utmFields(): UTM_FIELDS {
86+
get utmFields(): UtmFields {
8787
return {
8888
utm_campaign: this.utmCampaign,
8989
utm_medium: this.utmMedium,

0 commit comments

Comments
 (0)