Skip to content

Commit

Permalink
Merge pull request #88 from code0-tech/quote-logo-requierement
Browse files Browse the repository at this point in the history
switch logo to non requirements for quote component
  • Loading branch information
nicosammito authored May 6, 2024
2 parents dfbf1fb + 0f0bc43 commit a376fb7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Binary file modified __snapshots__/quote--quote-sample-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __snapshots__/quote--quote-sample-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __snapshots__/quote--quote-sample-webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 a376fb7

Please sign in to comment.