Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 96972dbe2f | |||
| 7146048aee | |||
| 39f1f5bc73 | |||
| 752fc6a4a8 |
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
@@ -9,6 +9,7 @@ import products from "../../data/product_data.json";
|
|||||||
import Layout from "../Partials/Layout";
|
import Layout from "../Partials/Layout";
|
||||||
import {
|
import {
|
||||||
ActivitiesTab, BlogTab,
|
ActivitiesTab, BlogTab,
|
||||||
|
QuestionsTab,
|
||||||
CollectionTab,
|
CollectionTab,
|
||||||
CreatedTab,
|
CreatedTab,
|
||||||
HiddenProductsTab,
|
HiddenProductsTab,
|
||||||
@@ -39,7 +40,7 @@ export default function Resources(props) {
|
|||||||
// Category Components
|
// Category Components
|
||||||
const tabComponents = {
|
const tabComponents = {
|
||||||
blog: <BlogTab blogdata={blogItems} />,
|
blog: <BlogTab blogdata={blogItems} />,
|
||||||
onsale: <OnSaleTab products={onSaleProducts} />,
|
onsale: <QuestionsTab products={onSaleProducts} />,
|
||||||
owned: <OwnTab products={ownProducts} />,
|
owned: <OwnTab products={ownProducts} />,
|
||||||
created: (
|
created: (
|
||||||
<CreatedTab marketProducts={CreatedSell} mainProducts={CreatedBits} />
|
<CreatedTab marketProducts={CreatedSell} mainProducts={CreatedBits} />
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import ProductCardStyleTwo from "../../Cards/ProductCardStyleTwo";
|
||||||
|
import DataIteration from "../../Helpers/DataIteration";
|
||||||
|
import SearchCom from "../../Helpers/SearchCom";
|
||||||
|
|
||||||
|
export default function QuestionsTab({ className, products }) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className={`onsale-tab-wrapper w-full ${className || ""}`}>
|
||||||
|
<div className="main-container w-full">
|
||||||
|
<div className="filter-section w-full items-center sm:flex justify-between mb-6">
|
||||||
|
{/* filter-search */}
|
||||||
|
<div className="sm:w-1/2 w-full sm:pr-20 pr-0 mb-5 sm:mb-0">
|
||||||
|
<SearchCom />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className="content-section w-full-width">
|
||||||
|
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -5,9 +5,11 @@ import HiddenProductsTab from "./HiddenProductsTab";
|
|||||||
import OnSaleTab from "./OnSaleTab";
|
import OnSaleTab from "./OnSaleTab";
|
||||||
import OwnTab from "./OwnTab";
|
import OwnTab from "./OwnTab";
|
||||||
import BlogTab from "./BlogTab";
|
import BlogTab from "./BlogTab";
|
||||||
|
import QuestionsTab from "./QuestionsTab";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
BlogTab,
|
BlogTab,
|
||||||
|
QuestionsTab,
|
||||||
ActivitiesTab,
|
ActivitiesTab,
|
||||||
CollectionTab,
|
CollectionTab,
|
||||||
CreatedTab,
|
CreatedTab,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function NotificationSettingTab() {
|
|||||||
setAccSettings(prev => {
|
setAccSettings(prev => {
|
||||||
let newAccSettings = prev.data.map(data => {
|
let newAccSettings = prev.data.map(data => {
|
||||||
if(data.uid == item.uid){
|
if(data.uid == item.uid){
|
||||||
let newPrefValue = data.pref_value == null || data.pref_value == false ? true : false
|
let newPrefValue = data.pref_value == null || data.pref_value == '0' ? '100' : '0'
|
||||||
return {...data, pref_value: newPrefValue}
|
return {...data, pref_value: newPrefValue}
|
||||||
}else{
|
}else{
|
||||||
return data
|
return data
|
||||||
@@ -40,7 +40,7 @@ export default function NotificationSettingTab() {
|
|||||||
setNotificationChange({loading: true, uid: item.uid})
|
setNotificationChange({loading: true, uid: item.uid})
|
||||||
let reqData = { // API PAYLOADS
|
let reqData = { // API PAYLOADS
|
||||||
pref_id: item.pref_id,
|
pref_id: item.pref_id,
|
||||||
status: '100'
|
status: item.pref_value == null || item.pref_value == 0 ? 100 : 0
|
||||||
}
|
}
|
||||||
api.setAccSettings(reqData).then(res => {
|
api.setAccSettings(reqData).then(res => {
|
||||||
if(res.status != 200 || res.data.internal_return < 0){
|
if(res.status != 200 || res.data.internal_return < 0){
|
||||||
@@ -94,7 +94,7 @@ export default function NotificationSettingTab() {
|
|||||||
<LoadingSpinner size='8' color='sky-blue' />
|
<LoadingSpinner size='8' color='sky-blue' />
|
||||||
:
|
:
|
||||||
<SwitchCom
|
<SwitchCom
|
||||||
value={item.pref_value}
|
value={item.pref_value == null || item.pref_value == '0' ? 0 : 100}
|
||||||
handler={ notificationChange.loading ? ()=>{} : () => handleNotificationChange(item)}
|
handler={ notificationChange.loading ? ()=>{} : () => handleNotificationChange(item)}
|
||||||
// value={updateNotification}
|
// value={updateNotification}
|
||||||
// handler={() => setUpdateNotification(!updateNotification)}
|
// handler={() => setUpdateNotification(!updateNotification)}
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
.RECIPIENT{
|
.RECIPIENT{
|
||||||
margin-right: 60px !important;
|
margin-right: 60px !important;
|
||||||
background-color: lightblue;
|
background-color: #add8e6 !important;
|
||||||
}
|
}
|
||||||
.wallet-box{
|
.wallet-box{
|
||||||
background-color: aliceblue;
|
background-color: aliceblue;
|
||||||
|
|||||||
Reference in New Issue
Block a user