From f625012165ca929edc11229b1d424c5c513d6159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Fri, 3 Nov 2023 22:21:10 -0300 Subject: [PATCH] refactor: move placeholder generator to shared libs --- src/app/about/components/image-card.tsx | 2 +- src/app/about/sections/dashboard/cards/github-followers.tsx | 2 +- src/app/about/sections/dashboard/cards/last-track.tsx | 2 +- src/{app/about/components => shared/lib}/placeholder.ts | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{app/about/components => shared/lib}/placeholder.ts (100%) diff --git a/src/app/about/components/image-card.tsx b/src/app/about/components/image-card.tsx index ebc71429..3484e9ef 100644 --- a/src/app/about/components/image-card.tsx +++ b/src/app/about/components/image-card.tsx @@ -2,7 +2,7 @@ import Image from 'next/image' import Tilt from 'react-parallax-tilt' -import { placeholder } from './placeholder' +import { placeholder } from '../../../shared/lib/placeholder' export function ImageCard({ mobile = false }) { return ( diff --git a/src/app/about/sections/dashboard/cards/github-followers.tsx b/src/app/about/sections/dashboard/cards/github-followers.tsx index 69235e82..bebe4856 100644 --- a/src/app/about/sections/dashboard/cards/github-followers.tsx +++ b/src/app/about/sections/dashboard/cards/github-followers.tsx @@ -2,7 +2,7 @@ import Image from 'next/image' import { GithubLogo } from '@/shared/wrappers/phosphor-icons' import { Card } from '../card' import { ApiErrorMessage } from '../api-error' -import { placeholder } from '../../../components/placeholder' +import { placeholder } from '../../../../../shared/lib/placeholder' type User = { followers: number diff --git a/src/app/about/sections/dashboard/cards/last-track.tsx b/src/app/about/sections/dashboard/cards/last-track.tsx index 22082f46..696a1776 100644 --- a/src/app/about/sections/dashboard/cards/last-track.tsx +++ b/src/app/about/sections/dashboard/cards/last-track.tsx @@ -3,7 +3,7 @@ import { SpotifyLogo } from '@/shared/wrappers/phosphor-icons' import { Card } from '../card' import { ApiErrorMessage } from '../api-error' -import { placeholder } from '../../../components/placeholder' +import { placeholder } from '../../../../../shared/lib/placeholder' type Track = { artist: { diff --git a/src/app/about/components/placeholder.ts b/src/shared/lib/placeholder.ts similarity index 100% rename from src/app/about/components/placeholder.ts rename to src/shared/lib/placeholder.ts