fix: remove right sidebar css module
This commit is contained in:
parent
628c796e8f
commit
9f29db96ec
|
@ -16,6 +16,7 @@ interface StandardLineChartProps {
|
||||||
data: ChartData[]
|
data: ChartData[]
|
||||||
isInteractive?: boolean
|
isInteractive?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const StandardLineChart = ({ data, isInteractive }: StandardLineChartProps) => {
|
const StandardLineChart = ({ data, isInteractive }: StandardLineChartProps) => {
|
||||||
const maxMemory = data[0].maxValue || 'auto'
|
const maxMemory = data[0].maxValue || 'auto'
|
||||||
const colors = data.map(dataset => dataset.color)
|
const colors = data.map(dataset => dataset.color)
|
||||||
|
@ -48,4 +49,5 @@ const StandardLineChart = ({ data, isInteractive }: StandardLineChartProps) => {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default StandardLineChart
|
export default StandardLineChart
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -181,14 +181,14 @@ type UptimeChartProps = {
|
||||||
withLabels: boolean
|
withLabels: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const keys = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
|
||||||
|
|
||||||
const updateMonthlyValues = (data: any, monthlyActivity: any) => {
|
const updateMonthlyValues = (data: any, monthlyActivity: any) => {
|
||||||
if (!Array.isArray(monthlyActivity) || monthlyActivity.length !== 12) {
|
if (!Array.isArray(monthlyActivity) || monthlyActivity.length !== 12) {
|
||||||
console.error('monthlyActivity should be an array with 12 values')
|
console.error('monthlyActivity should be an array with 12 values')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const keys = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
|
|
||||||
|
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
const month = data[i]
|
const month = data[i]
|
||||||
const activity = monthlyActivity[i]
|
const activity = monthlyActivity[i]
|
||||||
|
@ -201,6 +201,7 @@ const updateMonthlyValues = (data: any, monthlyActivity: any) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +210,6 @@ const UptimeChart = ({ monthlyActivity, startMonth, endMonth, withLabels }: Upti
|
||||||
console.log(updatedData)
|
console.log(updatedData)
|
||||||
const filteredData = data.slice(startMonth, endMonth + 1)
|
const filteredData = data.slice(startMonth, endMonth + 1)
|
||||||
|
|
||||||
filteredData
|
|
||||||
return (
|
return (
|
||||||
<ResponsiveContainer>
|
<ResponsiveContainer>
|
||||||
<BarChart data={filteredData} style={{ backgroundColor: '#F0F2F5' }}>
|
<BarChart data={filteredData} style={{ backgroundColor: '#F0F2F5' }}>
|
||||||
|
|
Loading…
Reference in New Issue