prettify, sorry for the big ass commit

This commit is contained in:
Olivier Gagnon
2021-09-04 19:09:30 -04:00
parent 3d7cdb4ef9
commit a18bdd6afc
554 changed files with 91615 additions and 66138 deletions
+10 -10
View File
@@ -1,23 +1,23 @@
import React from 'react';
import React from "react";
export function random(min: number, max: number): number {
return Math.random()*(max-min)+min;
return Math.random() * (max - min) + min;
}
export function getArrow(event: React.KeyboardEvent<HTMLElement>): string {
switch(event.keyCode) {
switch (event.keyCode) {
case 38:
case 87:
return "↑";
return "↑";
case 65:
case 37:
return "←";
return "←";
case 40:
case 83:
return "↓";
return "↓";
case 39:
case 68:
return "→";
}
return '';
}
return "→";
}
return "";
}