Skip to content

Commit

Permalink
switch logo to non requirements for quote component
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosammito committed May 6, 2024
1 parent dfbf1fb commit abde785
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/components/quote/Quote.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ type QuoteStory = StoryObj<typeof Quote>;
export const QuoteSample: QuoteStory = {
render: (args) => {
return <Quote {...args} name={"Nico Sammito"}
style={{height: "200px"}}
logo={"https://avatars.githubusercontent.com/u/150623800?s=200&v=4"}
position={"Co-founder"}
mt={10}
w={"300px"}>
My favorite UX feedback from customers is:
"How is the app so fast?"
Expand Down
10 changes: 6 additions & 4 deletions src/components/quote/Quote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Text from "../Text/Text";

export interface QuoteType extends Omit<CardType, "children"> {
children: string
logo: string
logo?: string
name: string
position: string
// defaults to true
Expand All @@ -21,9 +21,11 @@ const Quote: React.FC<QuoteType> = (props) => {
{children}
</div>
</Card.Section>
<Card.Section>
<img className={"quote__img"} src={logo} alt={"logo of quote"}/>
</Card.Section>
{
!!logo ? <Card.Section>
<img className={"quote__img"} src={logo} alt={"logo of quote"}/>
</Card.Section> : null
}
<Card.Section>
<Text size={"md"} hierarchy={"primary"}>{name}</Text><br/>
<Text size={"sm"}>{position}</Text>
Expand Down

0 comments on commit abde785

Please sign in to comment.