-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: fix icons on PopupMain and convert to tailwind #108
Conversation
src/views/components/PopupMain.tsx
Outdated
@@ -50,7 +53,7 @@ export default function PopupMain() { | |||
style={{ backgroundColor: '#bf5700', borderRadius: '8px', padding: '8px' }} | |||
onClick={handleOpenCalendar} | |||
> | |||
<FaCalendarAlt color='white' /> | |||
<CalendarIcon color='white' /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace color= prop with className="text-white"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
src/views/components/PopupMain.tsx
Outdated
@@ -62,7 +65,7 @@ export default function PopupMain() { | |||
}} | |||
onClick={handleOpenOptions} | |||
> | |||
<FaCog color='#C05621' /> | |||
<SettingsIcon color='#C05621' /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace the color prop here as well with a text- class, however what is the color supposed to be? Let's replace this with the propor theme color.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/views/components/PopupMain.tsx
Outdated
@@ -10,9 +10,12 @@ import { handleOpenCalendar } from '@views/components/injected/CourseCatalogInje | |||
import useSchedules from '@views/hooks/useSchedules'; | |||
import { openTabFromContentScript } from '@views/lib/openNewTabFromContentScript'; | |||
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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a good practice to import things from Storybook files. I would recommend extracting this as a common resource.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/views/components/PopupMain.tsx
Outdated
@@ -50,7 +53,7 @@ export default function PopupMain() { | |||
style={{ backgroundColor: '#bf5700', borderRadius: '8px', padding: '8px' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use UnoCSS here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Left a small comment that should be addressed before I can approve the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. Let's wait until @Razboy20 reviews one last time before merging.
Requested PR changes were addressed.
* feat: fix icons on PopupMain * fix: use text-white * fix: move TestColors * fix: convert to tailwind * fix: finish moving TestColors out * chore: add path alias * chore: lint PR * feat: create storybook.ts and move tailwindColorways there --------- Co-authored-by: doprz <[email protected]>
switched to using material symbol icons
the old version relied on Fa icons that we no longer use, so I replaced it with references to our material symbol icons
also went ahead and converted styling to tailwind