openreplay/frontend/app/components/Dashboard/Widgets/SpeedIndexLocation/Bar.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

16 lines
462 B
JavaScript

import React from 'react'
import stl from './Bar.module.css'
const Bar = ({ className = '', width = 0, avg, domain, color }) => {
return (
<div className={className}>
<div className="flex items-center">
<div className={stl.bar} style={{ width: `${width}%`, backgroundColor: color }}></div>
<div className="ml-2">{avg}</div>
</div>
<div className="text-sm leading-none">{domain}</div>
</div>
)
}
export default Bar