From 85220c59097905383fb26d3048a8739ed3628205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Holeczek?= Date: Wed, 20 Oct 2021 14:38:41 +0200 Subject: [PATCH] refactor: update edashboar view --- src/views/dashboard/Dashboard.js | 42 +++++++++++++------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/src/views/dashboard/Dashboard.js b/src/views/dashboard/Dashboard.js index 18d1009..d4fac08 100644 --- a/src/views/dashboard/Dashboard.js +++ b/src/views/dashboard/Dashboard.js @@ -59,6 +59,14 @@ const Dashboard = () => { return Math.floor(Math.random() * (max - min + 1) + min) } + const progressExample = [ + { title: 'Visits', value: '29.703 Users', percent: 40, color: 'success' }, + { title: 'Unique', value: '24.093 Users', percent: 20, color: 'info' }, + { title: 'Pageviews', value: '78.706 Views', percent: 60, color: 'warning' }, + { title: 'New Users', value: '22.123 Users', percent: 80, color: 'danger' }, + { title: 'Bounce Rate', value: 'Average Rate', percent: 40.15, color: 'primary' }, + ] + const progressGroupExample1 = [ { title: 'Monday', value1: 34, value2: 78 }, { title: 'Tuesday', value1: 56, value2: 94 }, @@ -289,31 +297,15 @@ const Dashboard = () => { - -
Visits
- 29.703 Users (40%) - -
- -
Unique
- 24.093 Users (20%) - -
- -
Pageviews
- 78.706 Views (60%) - -
- -
New Users
- 22.123 Users (80%) - -
- -
Bounce Rate
- Average Rate (40.15%) - -
+ {progressExample.map((item, index) => ( + +
{item.title}
+ + {item.value} ({item.percent}%) + + +
+ ))}