Skip to content

Commit

Permalink
comment out the buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
dbradhamBanyan committed Jul 10, 2024
1 parent 36264e1 commit 8ba0732
Showing 1 changed file with 32 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { atoms } from '@devlaunchers/components/src/components';
import { IdeaCard } from "./IdeaCard/IdeaCard";
import { IdeaOwnerCard } from "./IdeaOwnerCard/IdeaOwnerCard";
import { TagsCard } from "./TagsCard/TagsCard";
import IdeaContentCard from "./IdeaContentCard/IdeaContentCard";
import IdeaSettingsCard from "./IdeaSettingsCard/IdeaSettingsCard";
import { IdeaCard } from './IdeaCard/IdeaCard';
import { IdeaOwnerCard } from './IdeaOwnerCard/IdeaOwnerCard';
import { TagsCard } from './TagsCard/TagsCard';
import IdeaContentCard from './IdeaContentCard/IdeaContentCard';
import IdeaSettingsCard from './IdeaSettingsCard/IdeaSettingsCard';
import {
Wrapper,
TopView,
Expand All @@ -12,30 +12,45 @@ import {
} from './StyledComponents';

export const IdeaOverview = ({ selectedCard }) => {
if (selectedCard.ideaName === '') return null;

if (selectedCard.ideaName === "") return null;
const authorName =
selectedCard.ideaOwner?.userName !== undefined
? selectedCard.ideaOwner?.userName
: selectedCard.ideaOwner?.email;

const authorName = selectedCard.ideaOwner?.userName !== undefined
? selectedCard.ideaOwner?.userName
: selectedCard.ideaOwner?.email;

return (
<Wrapper>
<LeftWrapper>
<TopView>
<IdeaCard ideaName={selectedCard.ideaName} ideaTagLine={selectedCard.tagline} />
<IdeaCard
ideaName={selectedCard.ideaName}
ideaTagLine={selectedCard.tagline}
/>
</TopView>
<IdeaContentCard title={"Description"} content={selectedCard.description}/>
</LeftWrapper>
<IdeaContentCard
title={'Description'}
content={selectedCard.description}
/>
</LeftWrapper>

<RightWrapper>
<TopView>
<IdeaOwnerCard IdeaOwnerName={authorName} ideaOwnerImage={selectedCard.id}/>
<IdeaOwnerCard
IdeaOwnerName={authorName}
ideaOwnerImage={selectedCard.id}
/>
<TagsCard status={selectedCard.difficultyLevel} />
</TopView>
<IdeaContentCard title={"Idea features"} content={selectedCard.features}/>
<IdeaContentCard title={"Idea target Audience"} content={selectedCard.targetAudience}/>
<IdeaSettingsCard card={selectedCard} />
<IdeaContentCard
title={'Idea features'}
content={selectedCard.features}
/>
<IdeaContentCard
title={'Idea target Audience'}
content={selectedCard.targetAudience}
/>
{/* <IdeaSettingsCard card={selectedCard} /> */}
</RightWrapper>
</Wrapper>
);
Expand Down

0 comments on commit 8ba0732

Please sign in to comment.