From ea2b2583b84259c2c6ddb8c971ef30448d59b090 Mon Sep 17 00:00:00 2001 From: John Fawcett Date: Sun, 19 Mar 2023 17:37:59 -0500 Subject: [PATCH] Fixes character counter missing on web (#300) (#322) --- .../char-progress/CharProgress.web.tsx | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/view/com/composer/char-progress/CharProgress.web.tsx diff --git a/src/view/com/composer/char-progress/CharProgress.web.tsx b/src/view/com/composer/char-progress/CharProgress.web.tsx deleted file mode 100644 index d32d7a72..00000000 --- a/src/view/com/composer/char-progress/CharProgress.web.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React from 'react' -import {View} from 'react-native' -import {Text} from '../../util/text/Text' -import {s} from 'lib/styles' - -const MAX_TEXT_LENGTH = 256 -const DANGER_TEXT_LENGTH = MAX_TEXT_LENGTH - -export function CharProgress({count}: {count: number}) { - const progressColor = count > DANGER_TEXT_LENGTH ? '#e60000' : undefined - return ( - <> - - {MAX_TEXT_LENGTH - count} - - - { - null /* TODO count > DANGER_TEXT_LENGTH ? ( - - ) : ( - - )*/ - } - - - ) -}