Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Divs-B authored and jonathonherbert committed May 9, 2024
1 parent dc59e73 commit d31e659
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { DefaultDropIndicator } from 'components/DropZone';
import DragIntentContainer from 'components/DragIntentContainer';
import { CardTypes, CardTypesMap } from 'constants/cardTypes';
import { RecipeCard } from 'components/card/recipe/RecipeCard';
import { ChefCard } from '../../card/chef/ChefCard';
import { ChefCard } from 'components/card/chef/ChefCard';

export const createCardId = (id: string) => `collection-item-${id}`;

Expand Down Expand Up @@ -240,7 +240,6 @@ class Card extends React.Component<CardContainerProps> {
textSize={textSize}
showMeta={showMeta}
/>
{getSublinks}
</>
);
default:
Expand Down
2 changes: 1 addition & 1 deletion fronts-client/src/components/card/chef/ChefCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import CardSettingsDisplay from '../CardSettingsDisplay';
import CardHeadingContainer from '../CardHeadingContainer';
import CardHeading from '../CardHeading';
import ImageAndGraphWrapper from '../../image/ImageAndGraphWrapper';
import Thumbnail, { ThumbnailSmall } from '../../image/Thumbnail';
import { ThumbnailSmall } from '../../image/Thumbnail';

interface Props {
onDragStart?: (d: React.DragEvent<HTMLElement>) => void;
Expand Down
1 change: 1 addition & 0 deletions fronts-client/src/components/feed/ChefFeedItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const ChefFeedItemComponent = ({
title={`${chef.firstName} ${chef.lastName}`}
hasVideo={false}
isLive={true}
liveUrl={`https://theguardian.com/${chef.apiUrl}`}
thumbnail={chef.bylineLargeImageUrl}
onAddToClipboard={noop}
handleDragStart={handleDragStart}
Expand Down
14 changes: 7 additions & 7 deletions fronts-client/src/components/feed/RecipeSearchContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ const FeastSearchContainerComponent = ({
{Object.values(recipes).map((recipe) => (
<RecipeFeedItem key={recipe.id} recipe={recipe} />
))}
{Object.values(chefs).map(
(
chef /* TODO: as of now, added rendering of chefs just after the recipes. Need to change when "search-chefs" action gets finalised*/
) => (
<ChefFeedItem key={chef.id} chef={chef} />
)
)}
{Object.values(chefs).map((chef) => (
<ChefFeedItem
key={chef.id}
chef={chef}
/> /*TODO: as of now, added rendering of chefs just after the recipes. Need
to change when "search-chefs" action gets finalised*/
))}
</FixedContentContainer>
</React.Fragment>
);
Expand Down

0 comments on commit d31e659

Please sign in to comment.