fix: remove right sidebar css module

This commit is contained in:
RadoslavDimchev 2023-10-19 11:37:27 +03:00
parent 628c796e8f
commit 9f29db96ec
3 changed files with 5 additions and 19 deletions

View File

@ -16,6 +16,7 @@ interface StandardLineChartProps {
data: ChartData[]
isInteractive?: boolean
}
const StandardLineChart = ({ data, isInteractive }: StandardLineChartProps) => {
const maxMemory = data[0].maxValue || 'auto'
const colors = data.map(dataset => dataset.color)
@ -48,4 +49,5 @@ const StandardLineChart = ({ data, isInteractive }: StandardLineChartProps) => {
/>
)
}
export default StandardLineChart

View File

@ -1,16 +0,0 @@
.transparent-scrollbar::-webkit-scrollbar {
width: 8px;
}
.transparent-scrollbar::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
.transparent-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.2);
}
.transparent-scrollbar::-webkit-scrollbar-corner {
background: transparent;
}

View File

@ -181,14 +181,14 @@ type UptimeChartProps = {
withLabels: boolean
}
const keys = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
const updateMonthlyValues = (data: any, monthlyActivity: any) => {
if (!Array.isArray(monthlyActivity) || monthlyActivity.length !== 12) {
console.error('monthlyActivity should be an array with 12 values')
return
}
const keys = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
for (let i = 0; i < data.length; i++) {
const month = data[i]
const activity = monthlyActivity[i]
@ -201,6 +201,7 @@ const updateMonthlyValues = (data: any, monthlyActivity: any) => {
}
}
}
return data
}
@ -209,7 +210,6 @@ const UptimeChart = ({ monthlyActivity, startMonth, endMonth, withLabels }: Upti
console.log(updatedData)
const filteredData = data.slice(startMonth, endMonth + 1)
filteredData
return (
<ResponsiveContainer>
<BarChart data={filteredData} style={{ backgroundColor: '#F0F2F5' }}>