forked from TamimEhsan/AlgorithmVisualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrects.jsx
More file actions
26 lines (24 loc) · 677 Bytes
/
Copy pathrects.jsx
File metadata and controls
26 lines (24 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React, {Component} from 'react';
import Rect from "./rect";
class Rects extends Component {
render() {
let margin = 5;
if( this.props.rects.length>50 ){
margin=1;
}
return (
<div className="d-flex justify-content-center align-items-end">
{this.props.rects.map( (rect,rectidx)=>{
return (
<Rect
marg={margin}
key={rectidx}
rect={rect}
/>
);
} )}
</div>
);
}
}
export default Rects;