From f63d2a68f554d2cd8ee7a6fbada3c5d66bc4f95a Mon Sep 17 00:00:00 2001 From: Flavio Silva Date: Sun, 26 Nov 2023 14:03:48 -0300 Subject: [PATCH] refactor: rename to --- src/modules/app/projects/ProjectPageHeader.tsx | 6 +++--- .../{box/FeedbackBox.tsx => feedback/WarningFeedback.tsx} | 8 ++++---- .../shared/icons/{FeedbackIcon.tsx => WarningIcon.tsx} | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/modules/shared/{box/FeedbackBox.tsx => feedback/WarningFeedback.tsx} (60%) rename src/modules/shared/icons/{FeedbackIcon.tsx => WarningIcon.tsx} (85%) diff --git a/src/modules/app/projects/ProjectPageHeader.tsx b/src/modules/app/projects/ProjectPageHeader.tsx index a84f45f..d5cf03c 100644 --- a/src/modules/app/projects/ProjectPageHeader.tsx +++ b/src/modules/app/projects/ProjectPageHeader.tsx @@ -1,7 +1,7 @@ import { notFound } from 'next/navigation'; import { getProjectById } from './ProjectsRepository'; import { ProjectMutationDropdown } from './ProjectMutationDropdown'; -import { FeedbackBox } from '@/modules/shared/box/FeedbackBox'; +import { WarningFeedback } from '@/modules/shared/feedback/WarningFeedback'; import { ErrorList } from '@/modules/shared/errors/ErrorList'; export interface ProjectPageHeaderProps { @@ -24,9 +24,9 @@ export const ProjectPageHeader = async ({ id }: ProjectPageHeaderProps) => {

{project.description}

)} {project.archivedAt && ( - +

This project is archived.

-
+
)} ); diff --git a/src/modules/shared/box/FeedbackBox.tsx b/src/modules/shared/feedback/WarningFeedback.tsx similarity index 60% rename from src/modules/shared/box/FeedbackBox.tsx rename to src/modules/shared/feedback/WarningFeedback.tsx index 3a90216..bfc9f20 100644 --- a/src/modules/shared/box/FeedbackBox.tsx +++ b/src/modules/shared/feedback/WarningFeedback.tsx @@ -1,11 +1,11 @@ import { twMerge } from 'tailwind-merge'; import { ChildrenProps } from '@/modules/shared/ChildrenProps'; import { ClassNamePropsOptional } from '@/modules/shared/ClassNameProps'; -import { FeedbackIcon } from '@/modules/shared/icons/FeedbackIcon'; +import { WarningIcon } from '@/modules/shared/icons/WarningIcon'; -interface FeedbackBoxProps extends ChildrenProps, ClassNamePropsOptional {} +interface WarningFeedbackProps extends ChildrenProps, ClassNamePropsOptional {} -export const FeedbackBox = ({ children, className }: FeedbackBoxProps) => ( +export const WarningFeedback = ({ children, className }: WarningFeedbackProps) => (
( )} >

- +

{children}
diff --git a/src/modules/shared/icons/FeedbackIcon.tsx b/src/modules/shared/icons/WarningIcon.tsx similarity index 85% rename from src/modules/shared/icons/FeedbackIcon.tsx rename to src/modules/shared/icons/WarningIcon.tsx index dc002e5..5ec728b 100644 --- a/src/modules/shared/icons/FeedbackIcon.tsx +++ b/src/modules/shared/icons/WarningIcon.tsx @@ -1,4 +1,4 @@ -export const FeedbackIcon = (props: React.SVGProps) => ( +export const WarningIcon = (props: React.SVGProps) => (