diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ui/infobox/index.tsx | 6 | ||||
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx index 91ef88747..976ed5bc4 100644 --- a/src/components/ui/infobox/index.tsx +++ b/src/components/ui/infobox/index.tsx | |||
@@ -81,20 +81,20 @@ const styles = (theme: Theme) => ({ | |||
81 | }, | 81 | }, |
82 | close: { | 82 | close: { |
83 | color: (props: IProps) => | 83 | color: (props: IProps) => |
84 | theme.styleTypes[props.type ? props.type : 'primary'].contrast, | 84 | theme.styleTypes[props.type || 'primary'].contrast, |
85 | marginRight: -5, | 85 | marginRight: -5, |
86 | border: 0, | 86 | border: 0, |
87 | background: 'none', | 87 | background: 'none', |
88 | }, | 88 | }, |
89 | cta: { | 89 | cta: { |
90 | borderColor: (props: IProps) => | 90 | borderColor: (props: IProps) => |
91 | theme.styleTypes[props.type ? props.type : 'primary'].contrast, | 91 | theme.styleTypes[props.type || 'primary'].contrast, |
92 | borderRadius: theme.borderRadiusSmall, | 92 | borderRadius: theme.borderRadiusSmall, |
93 | borderStyle: 'solid', | 93 | borderStyle: 'solid', |
94 | borderWidth: 1, | 94 | borderWidth: 1, |
95 | background: 'none', | 95 | background: 'none', |
96 | color: (props: IProps) => | 96 | color: (props: IProps) => |
97 | theme.styleTypes[props.type ? props.type : 'primary'].contrast, | 97 | theme.styleTypes[props.type || 'primary'].contrast, |
98 | marginLeft: 15, | 98 | marginLeft: 15, |
99 | padding: [4, 10], | 99 | padding: [4, 10], |
100 | fontSize: theme.uiFontSize, | 100 | fontSize: theme.uiFontSize, |
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index 6545c3d7d..93fb4418d 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -268,7 +268,7 @@ class EditServiceScreen extends Component<EditServicesScreenProps> { | |||
268 | userAgentPref: { | 268 | userAgentPref: { |
269 | label: intl.formatMessage(globalMessages.userAgentPref), | 269 | label: intl.formatMessage(globalMessages.userAgentPref), |
270 | placeholder: service?.defaultUserAgent, | 270 | placeholder: service?.defaultUserAgent, |
271 | value: service?.userAgentPref ? service.userAgentPref : '', | 271 | value: service?.userAgentPref || '', |
272 | }, | 272 | }, |
273 | }, | 273 | }, |
274 | }; | 274 | }; |