Skip to content
Snippets Groups Projects
Verified Commit 3d738d0e authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

refactor: moved options up

parent 4ddb5698
No related branches found
No related tags found
1 merge request!9Version 0.4.0 🍾
Pipeline #1338 passed
...@@ -21,8 +21,8 @@ export const Display: FC<DisplayProps> = ({ ...@@ -21,8 +21,8 @@ export const Display: FC<DisplayProps> = ({
size = "small", size = "small",
style = [] style = []
}) => { }) => {
const classes = () => ["display", size, ...style].join(" ");
options = { ...options, ...{ width: 320, height: 288 } }; options = { ...options, ...{ width: 320, height: 288 } };
const classes = () => ["display", size, ...style].join(" ");
if (!options.scale) { if (!options.scale) {
options.scale = window.devicePixelRatio ? window.devicePixelRatio : 1; options.scale = window.devicePixelRatio ? window.devicePixelRatio : 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment