1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-11 19:53:59 +02:00

Remove youtube alert

This commit is contained in:
Kamran Ahmed
2023-06-30 19:23:58 +01:00
parent 7dfb630cb5
commit 0fa6ecd3ce
3 changed files with 3 additions and 5 deletions

View File

@@ -65,9 +65,8 @@ export function MarkFavorite({
}, },
}) })
); );
window.dispatchEvent(new CustomEvent('refresh-favorites', {}));
setIsFavorite(!isFavorite); window.dispatchEvent(new CustomEvent('refresh-favorites', {}));
setIsLoading(false); setIsLoading(false);
} }

View File

@@ -38,9 +38,7 @@ const isRoadmapReady = !isUpcoming;
<div class="border-b"> <div class="border-b">
<div class="container relative py-5 sm:py-12"> <div class="container relative py-5 sm:py-12">
<YouTubeAlert /> <div class="mb-3 mt-0 sm:mb-4">
<div class="mb-3 mt-0 sm:mb-4 sm:mt-4">
<h1 class="mb-0.5 text-2xl font-bold sm:mb-2 sm:text-4xl"> <h1 class="mb-0.5 text-2xl font-bold sm:mb-2 sm:text-4xl">
{title} {title}
<MarkFavorite <MarkFavorite

View File

@@ -1,5 +1,6 @@
--- ---
import type { VideoFileType } from '../lib/video'; import type { VideoFileType } from '../lib/video';
import YouTubeAlert from "./YouTubeAlert.astro";
export interface Props { export interface Props {
video: VideoFileType; video: VideoFileType;