From c28f4d268bb8f8dc73a359b4c7f8ecd0ea61b046 Mon Sep 17 00:00:00 2001 From: coderwelsch Date: Mon, 29 Jan 2024 21:29:55 +0100 Subject: [PATCH] renamed RecommendationTag to FeaturedTag --- .../featured-tag.stories.tsx} | 14 +++++++------- .../featured-tag.tsx} | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) rename src/components/{recommendation-tag/recommendation-tag.stories.tsx => featured-tag/featured-tag.stories.tsx} (78%) rename src/components/{recommendation-tag/recommendation-tag.tsx => featured-tag/featured-tag.tsx} (51%) diff --git a/src/components/recommendation-tag/recommendation-tag.stories.tsx b/src/components/featured-tag/featured-tag.stories.tsx similarity index 78% rename from src/components/recommendation-tag/recommendation-tag.stories.tsx rename to src/components/featured-tag/featured-tag.stories.tsx index ee216287..5700c838 100644 --- a/src/components/recommendation-tag/recommendation-tag.stories.tsx +++ b/src/components/featured-tag/featured-tag.stories.tsx @@ -1,17 +1,17 @@ import type { Meta, StoryObj } from "@storybook/react"; import React, { useState } from "react"; -import { RecommendationTag } from "./recommendation-tag"; +import { FeaturedTag } from "./featured-tag"; import { Panel } from "../panel"; import { FormField } from "../form-field"; -const meta: Meta = { - title: "Input/RecommendationTag", - component: RecommendationTag, +const meta: Meta = { + title: "Input/FeaturedTag", + component: FeaturedTag, }; export default meta; -type Story = StoryObj; +type Story = StoryObj; const RadioBoxWithRecommendationTag = () => { const [value, setValue] = useState("value_1"); @@ -27,7 +27,7 @@ const RadioBoxWithRecommendationTag = () => { id="value" > - Option 1Recommended! + Option 1Recommended! Option 2 @@ -50,7 +50,7 @@ export const PanelExample: Story = {

This example uses a Panel component

- Recommended! + Recommended!
), diff --git a/src/components/recommendation-tag/recommendation-tag.tsx b/src/components/featured-tag/featured-tag.tsx similarity index 51% rename from src/components/recommendation-tag/recommendation-tag.tsx rename to src/components/featured-tag/featured-tag.tsx index ac77efdf..5fbb81ee 100644 --- a/src/components/recommendation-tag/recommendation-tag.tsx +++ b/src/components/featured-tag/featured-tag.tsx @@ -1,16 +1,16 @@ import React, { ReactNode } from "react"; import { classNames } from "../../util/class-names"; -interface RecommendationTagProps { +interface FeaturedTagProps { children: ReactNode; className?: string; } -export const RecommendationTag = ({ children, className }: RecommendationTagProps) => { +export const FeaturedTag = ({ children, className }: FeaturedTagProps) => { return (