Semester Tile Takes Color Property
This commit is contained in:
@@ -6,6 +6,11 @@ import {deleteItem, editItem} from "@/components/Icons";
|
||||
export default function SemesterTile(p)
|
||||
{
|
||||
let editable = true;
|
||||
let color = "#ffffff"
|
||||
if (p.color != null)
|
||||
{
|
||||
color = p.color;
|
||||
}
|
||||
if (p.editable != null)
|
||||
{
|
||||
editable = p.editable
|
||||
@@ -16,7 +21,11 @@ export default function SemesterTile(p)
|
||||
})
|
||||
|
||||
return (
|
||||
<div onClick={(e) => p.onClick(e)} className={"semester-tile box-shadow"}>
|
||||
<div
|
||||
style={{
|
||||
backgroundColor: color
|
||||
}}
|
||||
onClick={(e) => p.onClick(e)} className={"semester-tile box-shadow"}>
|
||||
<p style={{
|
||||
lineHeight: "80%"
|
||||
}}>{p.text}</p>
|
||||
|
||||
Reference in New Issue
Block a user