Compare commits
1 Commits
derek/popu
...
vinson/rep
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9eb9bba36b |
@@ -10,9 +10,14 @@ import { handleOpenCalendar } from '@views/components/injected/CourseCatalogInje
|
|||||||
import useSchedules from '@views/hooks/useSchedules';
|
import useSchedules from '@views/hooks/useSchedules';
|
||||||
import { openTabFromContentScript } from '@views/lib/openNewTabFromContentScript';
|
import { openTabFromContentScript } from '@views/lib/openNewTabFromContentScript';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FaCalendarAlt, FaCog, FaRedo } from 'react-icons/fa'; // Added FaRedo for the refresh icon
|
|
||||||
import { TestColors } from 'src/stories/components/PopupCourseBlock.stories';
|
import { TestColors } from 'src/stories/components/PopupCourseBlock.stories';
|
||||||
|
|
||||||
|
import CalendarMonthIcon from '~icons/material-symbols/calendar-month';
|
||||||
|
import RedoIcon from '~icons/material-symbols/redo';
|
||||||
|
import SettingsIcon from '~icons/material-symbols/settings';
|
||||||
|
|
||||||
|
import { Button } from './common/Button/Button';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the main popup component.
|
* Renders the main popup component.
|
||||||
* This component displays the main schedule, courses, and options buttons.
|
* This component displays the main schedule, courses, and options buttons.
|
||||||
@@ -46,27 +51,25 @@ export default function PopupMain() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='flex items-center'>
|
<div className='flex items-center'>
|
||||||
<button
|
<Button
|
||||||
style={{ backgroundColor: '#bf5700', borderRadius: '8px', padding: '8px' }}
|
className='rounded-lg px-4 py-2'
|
||||||
onClick={handleOpenCalendar}
|
onClick={handleOpenCalendar}
|
||||||
|
variant='filled'
|
||||||
|
color='ut-burntorange'
|
||||||
>
|
>
|
||||||
<FaCalendarAlt color='white' />
|
<CalendarMonthIcon className='text-white' />
|
||||||
</button>
|
</Button>
|
||||||
<button
|
<Button
|
||||||
style={{
|
className='ml-10 rounded-lg px-4 py-2 shadow-sm'
|
||||||
backgroundColor: 'white',
|
|
||||||
marginLeft: '10px',
|
|
||||||
borderRadius: '8px',
|
|
||||||
padding: '8px',
|
|
||||||
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
|
|
||||||
}}
|
|
||||||
onClick={handleOpenOptions}
|
onClick={handleOpenOptions}
|
||||||
|
variant='filled'
|
||||||
|
color='ut-offwhite'
|
||||||
>
|
>
|
||||||
<FaCog color='#C05621' />
|
<SettingsIcon className='text-ut-burntorange' />
|
||||||
</button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Divider color='#E2E8F0' type='solid' style={{ margin: '1rem 0' }} />
|
<Divider orientation='horizontal' size='width' />
|
||||||
<div
|
<div
|
||||||
className='mb-4 rounded-lg bg-white p-2 text-left shadow-inner'
|
className='mb-4 rounded-lg bg-white p-2 text-left shadow-inner'
|
||||||
style={{ backgroundColor: 'white', border: '1px solid #FBD38D', borderRadius: '0.5rem' }}
|
style={{ backgroundColor: 'white', border: '1px solid #FBD38D', borderRadius: '0.5rem' }}
|
||||||
@@ -152,7 +155,7 @@ export default function PopupMain() {
|
|||||||
<Text as='div' variant='mini'>
|
<Text as='div' variant='mini'>
|
||||||
DATA UPDATED ON: 12:00 AM 02/01/2024
|
DATA UPDATED ON: 12:00 AM 02/01/2024
|
||||||
</Text>
|
</Text>
|
||||||
<FaRedo className='ml-2 h-4 w-4 text-gray-600' />
|
<RedoIcon className='ml-2 h-4 w-4 text-gray' />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const CalendarHeader = () => (
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Divider type='solid' />
|
<Divider orientation='horizontal' size='width' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user