diff --git a/src/components/quote/Quote.stories.tsx b/src/components/quote/Quote.stories.tsx index 3ec42864..034b97b1 100644 --- a/src/components/quote/Quote.stories.tsx +++ b/src/components/quote/Quote.stories.tsx @@ -39,10 +39,7 @@ type QuoteStory = StoryObj; export const QuoteSample: QuoteStory = { render: (args) => { return My favorite UX feedback from customers is: "How is the app so fast?" diff --git a/src/components/quote/Quote.tsx b/src/components/quote/Quote.tsx index 9af08dd4..f6b0007a 100644 --- a/src/components/quote/Quote.tsx +++ b/src/components/quote/Quote.tsx @@ -5,7 +5,7 @@ import Text from "../Text/Text"; export interface QuoteType extends Omit { children: string - logo: string + logo?: string name: string position: string // defaults to true @@ -21,9 +21,11 @@ const Quote: React.FC = (props) => { {children} - - {"logo - + { + !!logo ? + {"logo + : null + } {name}
{position}