Skip to content

Commit

Permalink
feat : update organisms/profit/index.js (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
JungYeonHwi committed Oct 23, 2023
1 parent 96f615f commit 7c506f4
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions components/organisms/profit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import React from 'react';
import { useEffect, useState } from "react";

import useGetProfit from '@hooks/useGetProfit';
import {
WholeDiv,
SemiDiv,
Div,
} from './style'
import Text from '@components/atoms/text';

const Profit = (props) => {

Expand All @@ -16,16 +22,32 @@ const Profit = (props) => {


return (
<>
<p>totalCount</p>
<h1>{data.totalCount}</h1>
<p>averageCount</p>
<h1>{data.averageCount}</h1>
<p>totalPrice</p>
<h1>{data.totalPrice}</h1>
<p>averagePrice</p>
<h1>{data.averagePrice}</h1>
</>
<WholeDiv>
<SemiDiv>
<Div>
<Text text="총 판매 개수" className="predictionTitle" />
<Text text={data.totalCount} className="predictionContent" />
</Div>

<Div>
<Text text="평균 판매 개수" className="predictionTitle" />
<Text text={data.averageCount} className="predictionContent" />
</Div>
</SemiDiv>

<SemiDiv>
<Div>
<Text text="총 금액" className="predictionTitle" />
<Text text={data.totalPrice} className="predictionContent" />
</Div>

<Div>
<Text text="평균 금액" className="predictionTitle" />
<Text text={data.averagePrice} className="predictionContent" />
</Div>
</SemiDiv>

</WholeDiv>
)
}

Expand Down

0 comments on commit 7c506f4

Please sign in to comment.