From 413c25fde369ada11745c805fecb4832ca0ab102 Mon Sep 17 00:00:00 2001 From: condyl Date: Sat, 10 Jan 2026 17:12:40 -0500 Subject: [PATCH 1/2] refactor: replace export options mui components with shadcn components, lessen padding/whitespace --- .../Forms/Settings/ExportOptions.jsx | 192 +++++++----------- 1 file changed, 73 insertions(+), 119 deletions(-) diff --git a/src/components/generator/Forms/Settings/ExportOptions.jsx b/src/components/generator/Forms/Settings/ExportOptions.jsx index db033ea..70b2f44 100644 --- a/src/components/generator/Forms/Settings/ExportOptions.jsx +++ b/src/components/generator/Forms/Settings/ExportOptions.jsx @@ -1,135 +1,89 @@ import React, { useState } from "react"; -import Box from "@mui/material/Box"; import BorderBox from "../../UI/BorderBox"; import ExportCalendarButton from "../../Export/ExportCalendarButton"; -import { ListItemButton } from "@mui/material"; -import Collapse from "@mui/material/Collapse"; -import ExpandLess from "@mui/icons-material/ExpandLess"; -import ExpandMore from "@mui/icons-material/ExpandMore"; -import Typography from "@mui/material/Typography"; -import List from "@mui/material/List"; -import ListItem from "@mui/material/ListItem"; -import ListItemText from "@mui/material/ListItemText"; -import { useTheme } from "@mui/material/styles"; -import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined"; +import { Info, ChevronDown, ChevronUp } from "lucide-react"; +import { + Collapsible, + CollapsibleContent, + CollapsibleTrigger, +} from "@/components/ui/collapsible"; +import { Separator } from "@/components/ui/separator"; export default function ExportOptions() { const [showHelp, setShowHelp] = useState(false); - const theme = useTheme(); return ( - +
{/* Main export section */} - +
- +
{/* Help section */} - - setShowHelp(!showHelp)} - sx={{ - borderRadius: 1, - mb: showHelp ? 1 : 0, - "&:hover": { - backgroundColor: theme.palette.action.hover, - }, - }} - > - - - {showHelp ? : } - - - - - - - Google Calendar: Go to calendar.google.com -
- Apple Calendar: Open the Calendar app -
- Outlook: Go to outlook.com/calendar - - } - primaryTypographyProps={{ variant: "body2" }} - secondaryTypographyProps={{ variant: "body2" }} - /> -
- - - Google Calendar: Click the gear icon (Settings) → Import - & Export -
- Apple Calendar: File → Import -
- Outlook: Click the gear icon → View all Outlook settings - → Calendar → Import calendar - - } - primaryTypographyProps={{ variant: "body2" }} - secondaryTypographyProps={{ variant: "body2" }} - /> -
- - - - - - -
-
-
-
-
+
+ + + + + How to use the .ics file + {showHelp ? ( + + ) : ( + + )} + + +
    +
  1. +
    + Open your calendar app +
    +
    + Google Calendar: Go to calendar.google.com +
    + Apple Calendar: Open the Calendar app +
    + Outlook: Go to outlook.com/calendar +
    +
  2. +
  3. +
    + Find the import option +
    +
    + Google Calendar: Click the gear icon (Settings) → Import & + Export +
    + Apple Calendar: File → Import +
    + Outlook: Click the gear icon → View all Outlook settings → + Calendar → Import calendar +
    +
  4. +
  5. +
    + Select the downloaded .ics file +
    +
    + Choose the .ics file you downloaded from this app +
    +
  6. +
  7. +
    + Confirm the import +
    +
    + Your courses will be added to your calendar. You can choose + which calendar to add them to (e.g., 'Work', 'Personal', + etc.) +
    +
  8. +
+
+
+
+
); } From 3f613698272ab93ec3615f1be33c43b2b6c4a139 Mon Sep 17 00:00:00 2001 From: condyl Date: Sat, 10 Jan 2026 17:32:41 -0500 Subject: [PATCH 2/2] style: adjust padding in CollapsibleTrigger for improved layout in ExportOptions component --- src/components/generator/Forms/Settings/ExportOptions.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/generator/Forms/Settings/ExportOptions.jsx b/src/components/generator/Forms/Settings/ExportOptions.jsx index 70b2f44..5d3adcc 100644 --- a/src/components/generator/Forms/Settings/ExportOptions.jsx +++ b/src/components/generator/Forms/Settings/ExportOptions.jsx @@ -24,7 +24,7 @@ export default function ExportOptions() {
- + How to use the .ics file {showHelp ? (