mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-16 01:52:00 +00:00
merge
This commit is contained in:
commit
583be5b702
@ -70,6 +70,11 @@ const ButtonCopy = styled(Button)`
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const TooltipContainer = styled.div`
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
`;
|
||||||
|
|
||||||
const Log = (props: Props) => {
|
const Log = (props: Props) => {
|
||||||
if (!props.log.opened) return null;
|
if (!props.log.opened) return null;
|
||||||
|
|
||||||
@ -93,13 +98,16 @@ const Log = (props: Props) => {
|
|||||||
<ReactJson src={props.log.entries} />
|
<ReactJson src={props.log.entries} />
|
||||||
</LogWrapper>
|
</LogWrapper>
|
||||||
{props.log.copied ? (
|
{props.log.copied ? (
|
||||||
<Tooltip
|
<TooltipContainer>
|
||||||
maxWidth={285}
|
<Tooltip
|
||||||
placement="top"
|
maxWidth={285}
|
||||||
content={<FormattedMessage {...l10nMessages.TR_COPIED} />}
|
placement="top"
|
||||||
>
|
content={<FormattedMessage {...l10nMessages.TR_COPIED} />}
|
||||||
{copyBtn}
|
onHidden={props.resetCopyState}
|
||||||
</Tooltip>
|
>
|
||||||
|
{copyBtn}
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipContainer>
|
||||||
) : (
|
) : (
|
||||||
<CopyWrapper>{copyBtn}</CopyWrapper>
|
<CopyWrapper>{copyBtn}</CopyWrapper>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user