Skip to content

Commit

Permalink
refactor(Quote):move Testimonial component under Quote folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sourtzis committed Apr 29, 2022
1 parent f54da19 commit e2467c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import Divider from '../Divider/Divider';
import Divider from '../../Divider/Divider';

import Quote from '../Quote/Quote';
import Quote from '../Quote';
import { Grid, Card, Image } from 'semantic-ui-react';

Testimonial.propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Testimonial from './Testimonial';
import { Container } from 'semantic-ui-react';

export default {
title: 'Components/Testimonial',
title: 'Components/Quote/Testimonial',
component: Testimonial,
argTypes: {
title: {
Expand All @@ -15,15 +15,15 @@ export default {
type: { summary: 'string' },
},
},
avatarTitle: {
avatartitle: {
description: 'avatar title',
type: { summary: 'string' },
},
avatarInfo: {
avatarinfo: {
description: 'avatar metadata',
type: { summary: 'string' },
},
avatarImage: {
avatarimage: {
description: 'testimonial image',
table: {
defaultValue: { summary: '""' },
Expand All @@ -40,9 +40,9 @@ const InlineTemplate = (args) => (
<Container>
<Testimonial {...args}>
<Testimonial.Avatar
src={args.avatarImage}
title={args.avatarTitle}
description={args.avatarInfo}
src={args.avatarimage}
title={args.avatartitle}
description={args.avatarinfo}
></Testimonial.Avatar>
<Testimonial.Content>
<Testimonial.Title>{args.title}</Testimonial.Title>
Expand All @@ -54,9 +54,9 @@ const InlineTemplate = (args) => (

export const Inline = InlineTemplate.bind({});
Inline.args = {
avatarTitle: 'Jane Doe',
avatarInfo: 'EEA Analyst',
avatarImage: imgUrl,
avatartitle: 'Jane Doe',
avatarinfo: 'EEA Analyst',
avatarimage: imgUrl,
title: 'Amet - Lorem ipsum dolor sit amet',
quote:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
Expand Down
2 changes: 1 addition & 1 deletion src/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export Quote from './Quote/Quote';

export Timeline from './Timeline/Timeline';

export Testimonial from './Testimonial/Testimonial';
export Testimonial from './Quote/Testimonial/Testimonial';

export AvatarGrid from './Card/AvatarGrid/AvatarGrid';

Expand Down

0 comments on commit e2467c2

Please sign in to comment.