MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / getKeyDetails

Function getKeyDetails

src/app/keyring/KeyGrid.js:153–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 getKeyDetails() {
154 const activeKeyDetails = this.props.keys.find(key => key.keyId === this.state.activeKey);
155 return (
156 <Alert type="info" className="mb-4 flex-shrink-1">
157 <span className={`icon icon-${activeKeyDetails.type === 'public' ? 'key' : 'key-pair'} mr-1`} style={{fontSize: '1.25rem'}}></span>
158 <span style={{fontSize: '1rem', fontWeight: 500}}>{activeKeyDetails.name}</span> {`<${activeKeyDetails.email}> #${activeKeyDetails.keyId}`}
159 </Alert>
160 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected