move accumulate cost to bottom
This commit is contained in:
@@ -223,20 +223,6 @@ export default (props: {
|
|||||||
Close
|
Close
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-between">
|
|
||||||
<p className="m-2 p-2">
|
|
||||||
Accumulated cost in all sessions ${totalCost.toFixed(4)}
|
|
||||||
</p>
|
|
||||||
<button
|
|
||||||
className="p-2 m-2 rounded bg-emerald-500"
|
|
||||||
onClick={() => {
|
|
||||||
clearTotalCost();
|
|
||||||
setTotalCost(getTotalCost());
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Reset
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p className="m-2 p-2">
|
<p className="m-2 p-2">
|
||||||
Total cost in this session ${props.chatStore.cost.toFixed(4)}
|
Total cost in this session ${props.chatStore.cost.toFixed(4)}
|
||||||
</p>
|
</p>
|
||||||
@@ -309,6 +295,20 @@ export default (props: {
|
|||||||
readOnly={false}
|
readOnly={false}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
<div className="flex justify-between">
|
||||||
|
<p className="m-2 p-2">
|
||||||
|
Accumulated cost in all sessions ${totalCost.toFixed(4)}
|
||||||
|
</p>
|
||||||
|
<button
|
||||||
|
className="p-2 m-2 rounded bg-emerald-500"
|
||||||
|
onClick={() => {
|
||||||
|
clearTotalCost();
|
||||||
|
setTotalCost(getTotalCost());
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Reset
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<p className="flex justify-evenly">
|
<p className="flex justify-evenly">
|
||||||
<button
|
<button
|
||||||
className="p-2 m-2 rounded bg-amber-500"
|
className="p-2 m-2 rounded bg-amber-500"
|
||||||
|
|||||||
Reference in New Issue
Block a user