Skip to content

Commit

Permalink
added eslint rule; and ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 24, 2024
1 parent b0e2498 commit 0c4f281
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/containers/course-details/curriculam-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@ const CurriculumPanel = ({ curriculum, courseSlug }: TProps) => {
</span>
<div className="tw-text-right tw-flex tw-items-center tw-py-2.5">
<Badge className="tw-ml-2.5">{item.duration}</Badge>
{item.type === "lesson" && item.access === "free" && (
<Badge className="tw-ml-2.5" color="primary">
Preview
</Badge>
)}
{item.type === "lesson" &&
item.access === "free" && (
<Badge
className="tw-ml-2.5"
color="primary"
>
Preview
</Badge>
)}
{item?.video && (
<span className="tw-ml-2.5 tw-font-medium tw-px-3.8">
<i className="far fa-video" />
Expand Down
1 change: 1 addition & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const MyApp = ({ Component, pageProps }: CustomAppProps): JSX.Element => {
const layoutProps = layout || {};

useEffect(() => {
// eslint-disable-next-line prefer-destructuring
const activeElement = document.activeElement;
if (activeElement instanceof HTMLElement) {
activeElement.blur();
Expand Down

0 comments on commit 0c4f281

Please sign in to comment.