mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-07 14:50:52 +00:00
fix flow
This commit is contained in:
parent
9c974c6415
commit
ea52c526ff
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user