1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-07 14:50:52 +00:00
This commit is contained in:
Vladimir Volek 2019-02-20 15:16:22 +01:00
parent 9c974c6415
commit ea52c526ff

View File

@ -15,8 +15,8 @@ const Img = styled.img`
`;
const TrezorImage = ({ model }: Props) => {
// $FlowIssue: `require` must be a string literal.
const imageName = model === 'One' ? 1 : model;
// $FlowIssue: `require` must be a string literal.
const src = require(`./images/trezor-${imageName}.png`); // eslint-disable-line
return (
<Wrapper>