forked from Transparency/kgroad-frontend2
renamed folders
This commit is contained in:
1 parent
d6c6504d1f
commit
e0e2f5470d
204 files changed
No files matched your search
@@ -0,0 +1,8 @@
|
||||
.road-type {
|
||||
padding: 4px 12px;
|
||||
width: fit-content;
|
||||
color: white;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
border-radius: 20px;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import "./RoadType.scss";
|
||||
|
||||
interface IRoadTypeProps {
|
||||
children: React.ReactNode;
|
||||
color: string;
|
||||
}
|
||||
|
||||
const RoadType: React.FC<IRoadTypeProps> = ({
|
||||
children,
|
||||
color,
|
||||
}: IRoadTypeProps) => {
|
||||
return (
|
||||
<div className="road-type" style={{ backgroundColor: color }}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default RoadType;
|
||||
Reference in new issue
Block a user