Skip to content

Commit dd65ed0

Browse files
committed
Make it clearer which whitelisted host are currently active
1 parent 2029a34 commit dd65ed0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/settings/settings-page.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ const CertificateWhitelistList = styled.div`
122122
const WhitelistHost = styled.div`
123123
min-width: 300px;
124124
font-family: ${p => p.theme.monoFontFamily};
125+
126+
${(p: { active: boolean }) => !p.active && css`
127+
font-style: italic;
128+
opacity: 0.6;
129+
`}
125130
`;
126131

127132
const ProxyPortsContainer = styled.div`
@@ -406,7 +411,10 @@ class SettingsPage extends React.Component<SettingsPageProps> {
406411
</ContentLabel>
407412
<CertificateWhitelistList>
408413
{ whitelistedCertificateHosts.map((host) => [
409-
<WhitelistHost key={`host-${host}`}>{ host }</WhitelistHost>,
414+
<WhitelistHost
415+
active={initiallyWhitelistedCertificateHosts.includes(host)}
416+
key={`host-${host}`}
417+
>{ host }</WhitelistHost>,
410418
<SettingsButton
411419
key={`delete-${host}`}
412420
onClick={() => this.unwhitelistHost(host)}

0 commit comments

Comments
 (0)