mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-16 05:19:12 +00:00
Merge branch 'master' into fix/scan-qr-error-handling
This commit is contained in:
commit
9967a9bc99
@ -6,10 +6,6 @@ To install dependencies run `npm install` or `yarn`
|
||||
To start locally run `npm run dev` or `yarn run dev`
|
||||
To build the project run `npm run build` or `yarn run build`
|
||||
|
||||
## Docker
|
||||
- Build `./scripts/docker-build.sh`
|
||||
- Run `./scripts/docker-run.sh`
|
||||
|
||||
## Project structure
|
||||
The project is divided into two parts - data that are used when compiling the project and data that aren't.
|
||||
|
||||
|
@ -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