From 8c70007eef6d77bb8944ea1c377514c61b6cde51 Mon Sep 17 00:00:00 2001 From: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Date: Fri, 1 Feb 2019 12:26:02 +0100 Subject: [PATCH] Add minimum scales for memory and bandwidth (#103) --- packages/frontend/src/components/List/Row.tsx | 8 +++++--- packages/frontend/src/icons/robonomics.svg | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/List/Row.tsx b/packages/frontend/src/components/List/Row.tsx index 207bf60..b197ec7 100644 --- a/packages/frontend/src/components/List/Row.tsx +++ b/packages/frontend/src/components/List/Row.tsx @@ -31,6 +31,8 @@ import unknownImplementationIcon from '../../icons/question-solid.svg'; import './Row.css'; const SEMVER_PATTERN = /^\d+\.\d+\.\d+/; +const BANDWIDTH_SCALE = 1024 * 1024; +const MEMORY_SCALE = 2 * 1024 * 1024; export namespace Row { export interface Props { @@ -183,7 +185,7 @@ export class Row extends React.Component { } return ( - + ); } }, @@ -198,7 +200,7 @@ export class Row extends React.Component { } return ( - + ); } }, @@ -213,7 +215,7 @@ export class Row extends React.Component { } return ( - + ); } }, diff --git a/packages/frontend/src/icons/robonomics.svg b/packages/frontend/src/icons/robonomics.svg index 9bc4a9b..3a9baf5 100644 --- a/packages/frontend/src/icons/robonomics.svg +++ b/packages/frontend/src/icons/robonomics.svg @@ -1 +1 @@ - +