From aa4dcc47a8ffedc88974939fe243f752d9b3c983 Mon Sep 17 00:00:00 2001
From: Vojtech Mares
Date: Tue, 6 Jun 2023 14:38:10 +0200
Subject: [PATCH] refactor: rename compoments Pricing -> Services,
PrimaryFeatures -> WhatIDo
I wanted the component names to more acurately reflect of what they do rather then non specific words
---
.../homepage/{Pricing.tsx => Services.tsx} | 18 +++++++++---------
.../{PrimaryFeatures.tsx => WhatIDo.tsx} | 2 +-
pages/index.tsx | 8 ++++----
3 files changed, 14 insertions(+), 14 deletions(-)
rename components/homepage/{Pricing.tsx => Services.tsx} (96%)
rename components/homepage/{PrimaryFeatures.tsx => WhatIDo.tsx} (98%)
diff --git a/components/homepage/Pricing.tsx b/components/homepage/Services.tsx
similarity index 96%
rename from components/homepage/Pricing.tsx
rename to components/homepage/Services.tsx
index 55eb905..547cf81 100644
--- a/components/homepage/Pricing.tsx
+++ b/components/homepage/Services.tsx
@@ -22,7 +22,7 @@ function SwirlyDoodle({ className }: SwirlyDoodleProps) {
);
}
-type PlanProps = {
+type ServiceProps = {
name: string;
price: string;
description: string;
@@ -31,14 +31,14 @@ type PlanProps = {
buttonText?: string;
};
-function Plan({
+function Service({
name,
price,
description,
href,
featured = false,
buttonText = "Napište mi",
-}: PlanProps) {
+}: ServiceProps) {
return (
@@ -94,13 +94,13 @@ export function Pricing() {