Last change
on this file since e9b4ba9 was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 9 months ago |
prototype
|
-
Property mode
set to
100644
|
File size:
465 bytes
|
Line | |
---|
1 | import React from "react";
|
---|
2 |
|
---|
3 | const Line = (props) => {
|
---|
4 | console.log(props.left)
|
---|
5 | const left = props.left === "true" ? "9.08rem" : "2.6rem";
|
---|
6 | console.log({borderLeft: "5px solid #159895", height: "3em", marginLeft: left, marginTop: "-1.4rem", marginBottom: "-1.4rem"})
|
---|
7 | return (<>
|
---|
8 | <div style={{borderLeft: "5px solid #159895", height: "3em", marginLeft: left, marginTop: "-1.4rem", marginBottom: "-1.4rem"}}></div>
|
---|
9 | </>)
|
---|
10 | }
|
---|
11 |
|
---|
12 | export default Line; |
---|
Note:
See
TracBrowser
for help on using the repository browser.