diff --git a/app/(pages)/(home)/cards/github.tsx b/app/(pages)/(home)/cards/github.tsx index f210fe69..6e9caad5 100644 --- a/app/(pages)/(home)/cards/github.tsx +++ b/app/(pages)/(home)/cards/github.tsx @@ -5,7 +5,7 @@ import { get } from '@vercel/edge-config'; import type { ReactElement } from 'react'; import ActivityCalendar from 'rsc-activity-calendar'; -const GitHubCard = async (): Promise => { +export const GitHubCard = async (): Promise => { const github = await get('github'); if (!github) { @@ -46,5 +46,3 @@ const GitHubCard = async (): Promise => { ); }; - -export default GitHubCard; diff --git a/app/(pages)/(home)/cards/spotify/index.tsx b/app/(pages)/(home)/cards/spotify/index.tsx index b8b56d29..e3cac295 100644 --- a/app/(pages)/(home)/cards/spotify/index.tsx +++ b/app/(pages)/(home)/cards/spotify/index.tsx @@ -4,10 +4,9 @@ import { Link } from '@/components/link'; import { get } from '@vercel/edge-config'; import Image from 'next/image'; import type { ReactElement } from 'react'; - import Vinyl from './vinyl.png'; -const SpotifyCard = async (): Promise => { +export const SpotifyCard = async (): Promise => { const song = await get('spotify'); if (!song) { @@ -46,5 +45,3 @@ const SpotifyCard = async (): Promise => { ); }; - -export default SpotifyCard; diff --git a/app/(pages)/(home)/cards/steam.tsx b/app/(pages)/(home)/cards/steam.tsx index 506d979b..3a4befe5 100644 --- a/app/(pages)/(home)/cards/steam.tsx +++ b/app/(pages)/(home)/cards/steam.tsx @@ -5,7 +5,7 @@ import { get } from '@vercel/edge-config'; import Image from 'next/image'; import type { ReactElement } from 'react'; -const SteamCard = async (): Promise => { +export const SteamCard = async (): Promise => { const game = await get('steam'); if (!game) { @@ -43,5 +43,3 @@ const SteamCard = async (): Promise => { ); }; - -export default SteamCard; diff --git a/app/(pages)/(home)/cards/typefully.tsx b/app/(pages)/(home)/cards/typefully.tsx index bb33985c..8101b331 100644 --- a/app/(pages)/(home)/cards/typefully.tsx +++ b/app/(pages)/(home)/cards/typefully.tsx @@ -3,7 +3,7 @@ import { Card } from '@/components/card'; import { get } from '@vercel/edge-config'; import type { ReactElement } from 'react'; -const TypefullyCard = async (): Promise => { +export const TypefullyCard = async (): Promise => { const tweets = await get('typefully'); if (!tweets) { @@ -19,6 +19,7 @@ const TypefullyCard = async (): Promise => {
dangerouslySetInnerHTML={{ __html: tweet.html.replace(//g, ' '), }} @@ -34,5 +35,3 @@ const TypefullyCard = async (): Promise => { ); }; - -export default TypefullyCard; diff --git a/app/(pages)/(home)/cards/video.tsx b/app/(pages)/(home)/cards/video.tsx index 35cbd84c..2553db2e 100644 --- a/app/(pages)/(home)/cards/video.tsx +++ b/app/(pages)/(home)/cards/video.tsx @@ -2,10 +2,8 @@ import { Card } from '@/components/card'; import { Video } from '@/components/video'; import type { ReactElement } from 'react'; -const VideoCard = async (): Promise => ( +export const VideoCard = async (): Promise => ( ); - -export default VideoCard; diff --git a/app/(pages)/(home)/page.tsx b/app/(pages)/(home)/page.tsx index 4f6e21d1..69aeb307 100644 --- a/app/(pages)/(home)/page.tsx +++ b/app/(pages)/(home)/page.tsx @@ -5,11 +5,11 @@ import Image from 'next/image'; import { type FC, Suspense } from 'react'; import Avatar from './avatar.jpg'; import { AnnouncementCard } from './cards/announcement'; -import GitHubCard from './cards/github'; -import SpotifyCard from './cards/spotify'; -import SteamCard from './cards/steam'; -import TypefullyCard from './cards/typefully'; -import VideoCard from './cards/video'; +import { GitHubCard } from './cards/github'; +import { SpotifyCard } from './cards/spotify'; +import { SteamCard } from './cards/steam'; +import { TypefullyCard } from './cards/typefully'; +import { VideoCard } from './cards/video'; import { Location } from './components/location'; import { Newsletter } from './components/newsletter';