[#4] added padding between calendar headers
This commit is contained in:
@@ -9,6 +9,9 @@ main {
|
|||||||
height: 90vh;
|
height: 90vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendarListHeader {
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
border-right: 2px gray;
|
border-right: 2px gray;
|
||||||
width: 20vw;
|
width: 20vw;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ export default function CalendarSelection({
|
|||||||
setSelectedCalendars: Function;
|
setSelectedCalendars: Function;
|
||||||
}) {
|
}) {
|
||||||
const userId = useAppSelector((state) => state.user.userData.openpaasId);
|
const userId = useAppSelector((state) => state.user.userData.openpaasId);
|
||||||
const dispatch = useAppDispatch();
|
|
||||||
const calendars = useAppSelector((state) => state.calendars.list);
|
const calendars = useAppSelector((state) => state.calendars.list);
|
||||||
const personnalCalendars = Object.keys(calendars).filter(
|
const personnalCalendars = Object.keys(calendars).filter(
|
||||||
(id) => id.split("/")[0] === userId
|
(id) => id.split("/")[0] === userId
|
||||||
@@ -27,7 +26,9 @@ export default function CalendarSelection({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h3>personnalCalendars</h3>
|
<p className="calendarListHeader">
|
||||||
|
<h3>Personnal Calendars</h3>
|
||||||
|
</p>
|
||||||
{personnalCalendars.map((id) => {
|
{personnalCalendars.map((id) => {
|
||||||
return (
|
return (
|
||||||
<div key={id}>
|
<div key={id}>
|
||||||
@@ -45,7 +46,9 @@ export default function CalendarSelection({
|
|||||||
})}
|
})}
|
||||||
{delegatedCalendars.length > 0 && (
|
{delegatedCalendars.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<h3>delegatedCalendars</h3>
|
<p className="calendarListHeader">
|
||||||
|
<h3>Delegated Calendars</h3>
|
||||||
|
</p>
|
||||||
{delegatedCalendars.map((id) => (
|
{delegatedCalendars.map((id) => (
|
||||||
<div key={id}>
|
<div key={id}>
|
||||||
<label>
|
<label>
|
||||||
@@ -63,7 +66,9 @@ export default function CalendarSelection({
|
|||||||
)}
|
)}
|
||||||
{sharedCalendars.length > 0 && (
|
{sharedCalendars.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<h3>sharedCalendars</h3>
|
<p className="calendarListHeader">
|
||||||
|
<h3>Shared Calendars</h3>
|
||||||
|
</p>
|
||||||
{sharedCalendars.map((id) => (
|
{sharedCalendars.map((id) => (
|
||||||
<div key={id}>
|
<div key={id}>
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
Reference in New Issue
Block a user