Updated the DesignItem.jsx

This commit is contained in:
Mathias Wagner 2023-12-12 06:48:34 +01:00
parent e8870b6723
commit 6518b5c959
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,5 +1,4 @@
import CoinImage from "@/common/images/coin.png";
import DesignImage from "@/common/images/design.png";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import "./styles.sass";
import {useContext, useEffect, useState} from "react";
@ -7,7 +6,7 @@ import {ChannelContext} from "@/states/Manage/pages/Channels/contexts/ChannelCon
import {useParams} from "react-router-dom";
import {patchRequest} from "@/common/util/RequestUtil.js";
export const DesignItem = ({id, name, coins, perks = [], active}) => {
export const DesignItem = ({id, name, coins, perks = [], image}) => {
const params = useParams();
const {channels, getChannelById, updateChannels} = useContext(ChannelContext);
@ -43,7 +42,7 @@ export const DesignItem = ({id, name, coins, perks = [], active}) => {
</div>))}
</div>
</div>
<img src={DesignImage} alt="Design"/>
<img src={image} alt="Design"/>
</div>
)
}