@@ -45,11 +45,11 @@ import {
45
45
WebhookEventNameType ,
46
46
} from '../Shared'
47
47
import { ReactComponent as ArrowDown } from '@Icons/ic-chevron-down.svg'
48
- import webhookIcon from '@Icons/ic-webhook.svg'
49
- import branchIcon from '@Icons/ic-branch.svg'
50
- import regexIcon from '@Icons/ic-regex.svg'
51
- import pullRequest from '@Icons/ic-pull-request.svg'
52
- import tagIcon from '@Icons/ic-tag.svg'
48
+ import { ReactComponent as ICWebhook } from '@Icons/ic-webhook.svg'
49
+ import { ReactComponent as ICBranch } from '@Icons/ic-branch.svg'
50
+ import { ReactComponent as ICRegex } from '@Icons/ic-regex.svg'
51
+ import { ReactComponent as ICPullRequest } from '@Icons/ic-pull-request.svg'
52
+ import { ReactComponent as ICTag } from '@Icons/ic-tag.svg'
53
53
import { SourceTypeMap } from '@Common/Common.service'
54
54
import { getIsRequestAborted } from './Api'
55
55
@@ -990,17 +990,17 @@ export const throttle = <T extends (...args: unknown[]) => unknown>(
990
990
export const getBranchIcon = ( sourceType , _isRegex ?: boolean , webhookEventName ?: string ) => {
991
991
if ( sourceType === SourceTypeMap . WEBHOOK ) {
992
992
if ( webhookEventName === WebhookEventNameType . PULL_REQUEST ) {
993
- return pullRequest
993
+ return < ICPullRequest className = "scn-6" />
994
994
}
995
995
if ( webhookEventName === WebhookEventNameType . TAG_CREATION ) {
996
- return tagIcon
996
+ return < ICTag className = "scn-6" />
997
997
}
998
- return webhookIcon
998
+ return < ICWebhook />
999
999
}
1000
1000
if ( sourceType === SourceTypeMap . BranchRegex || _isRegex ) {
1001
- return regexIcon
1001
+ return < ICRegex className = "fcn-6" />
1002
1002
}
1003
- return branchIcon
1003
+ return < ICBranch className = "fcn-6" />
1004
1004
}
1005
1005
1006
1006
// TODO: Might need to expose sandbox and referrer policy
0 commit comments