From 53ebd9cec0847b1b6bda614b1437d4f4e73ef72e Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Tue, 10 Sep 2019 22:22:40 -0700 Subject: [PATCH] Add a box splitting out methods that are actually used --- modern/src/Dashboard.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modern/src/Dashboard.tsx b/modern/src/Dashboard.tsx index 203269a4..db429295 100644 --- a/modern/src/Dashboard.tsx +++ b/modern/src/Dashboard.tsx @@ -39,6 +39,10 @@ Object.keys(objects).forEach(key => { }); }); +const foundMethods = normalizedMethods.filter( + method => method.foundInSkins > 0 +); + function PercentBox({ number, total, label }) { const percent = total === 0 ? 1 : number / total; @@ -111,7 +115,12 @@ export default function() { + method.implemented).length} + total={foundMethods.length} + label="Used Methods" />