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)
|
export default function SemesterTile(p)
|
||||||
{
|
{
|
||||||
let editable = true;
|
let editable = true;
|
||||||
|
let color = "#ffffff"
|
||||||
|
if (p.color != null)
|
||||||
|
{
|
||||||
|
color = p.color;
|
||||||
|
}
|
||||||
if (p.editable != null)
|
if (p.editable != null)
|
||||||
{
|
{
|
||||||
editable = p.editable
|
editable = p.editable
|
||||||
@@ -16,7 +21,11 @@ export default function SemesterTile(p)
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
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={{
|
<p style={{
|
||||||
lineHeight: "80%"
|
lineHeight: "80%"
|
||||||
}}>{p.text}</p>
|
}}>{p.text}</p>
|
||||||
|
|||||||
@@ -344,6 +344,7 @@ Calender View
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -506,7 +507,6 @@ SemesterTile
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.semester-tile {
|
.semester-tile {
|
||||||
background-color: #ffffff;
|
|
||||||
width: 240px;
|
width: 240px;
|
||||||
height: 160px;
|
height: 160px;
|
||||||
color: black;
|
color: black;
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user