Skip to content

Commit

Permalink
chore(queries): use in calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
danmaninc committed Feb 18, 2024
1 parent 0f26b79 commit 6aec6b2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions app/@modal/(.)schedule/event-groups/[alias]/export/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ export default function Page({ params: { alias } }: Props) {
</li>
<li>Paste the link and click Add.</li>
</ul>
{/* TODO: Determine what to do with calendar margin */}
<div className="-mx-4 -mb-4 lg:-mx-8 lg:-mb-8">
<div className="-mx-4 -mb-4 @lg/export:-mx-8 @lg/export:-mb-8">
<Calendar
urls={calendarURL ? [calendarURL] : []}
viewId="popup"
Expand Down
3 changes: 1 addition & 2 deletions app/@modal/(.)schedule/event-groups/[alias]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ export default function Page({ params: { alias } }: Props) {
</h2>
<ExportButton alias={group.alias} />
</div>
{/* TODO: Determine what to do with calendar margin */}
<div className="-mx-4 -mb-4 lg:-mx-8 lg:-mb-8">
<div className="-mx-4 -mb-4 @lg/event:-mx-8 @lg/event:-mb-8">
<Calendar
urls={[getICSLink(group.alias, user?.id)]}
viewId="popup"
Expand Down
4 changes: 1 addition & 3 deletions app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ export default function Page() {
</div>
</div>
<h2 className="my-4 text-3xl font-medium">Your calendar</h2>
<div className="">
{" "}
{/* TODO: -mx-8 makes calendars margin not equal on PC. is it good or not? */}
<div className="-mx-4 -mb-4 @lg/content:-mx-8 @lg/content:-mb-8">
{!user ? (
<>Loading...</>
) : (
Expand Down
3 changes: 1 addition & 2 deletions app/music-room/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ export default function Page() {
</div>
</div>
<h2 className="my-4 text-3xl font-medium">Booking calendar</h2>
{/* TODO: Determine what to do with the margin of calendar */}
<div className="lg:-mx-8">
<div className="@lg/content:-mx-8">
<Calendar
urls={[
`${EVENTS_API_URL}/music-room.ics`,
Expand Down
4 changes: 1 addition & 3 deletions app/schedule/event-groups/[alias]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export default function Page({ params: { alias } }: Props) {
<h2 className="flex grow text-3xl font-medium">Calendar</h2>
<ExportButton alias={group.alias} />
</div>
<div className="-mx-4 -mb-4 lg:-mx-8 lg:-mb-8">
{" "}
{/* TODO: Calendar margin is not good? */}
<div className="-mx-4 -mb-4 @lg/content:-mx-8 @lg/content:-mb-8">
<Calendar
urls={[getICSLink(group.alias, user?.id)]}
initialView={
Expand Down

0 comments on commit 6aec6b2

Please sign in to comment.