mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
fixed some values for pageFilterControl, SelectModal
This commit is contained in:
1 parent
a95124b094
commit
f26cec2ec8
3 files changed
+4
-4
No files matched your search
@@ -45,7 +45,7 @@ const SelectModal = memo(
|
||||
const [weightType, setWeightType] = useState(
|
||||
tabs[0].weightTypeFilter || "all"
|
||||
);
|
||||
|
||||
console.log("🔫", tabs, activeTab, weightType);
|
||||
// Update mediaType when activeTab changes
|
||||
useEffect(() => {
|
||||
const currentTab = tabs.find(tab => tab.tabKey === activeTab);
|
||||
|
||||
@@ -81,7 +81,7 @@ export default function SelectWeightsList({
|
||||
key,
|
||||
}}
|
||||
>
|
||||
<WeightsCards {...{ type: data.weights_type, props }} />
|
||||
<WeightsCards {...{ type: data.weight_category, props }} />
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
+2
-2
@@ -163,14 +163,14 @@ export default function PageFilterControls({
|
||||
{
|
||||
label: "All Weights",
|
||||
tabKey: "allWeights",
|
||||
weightTypeFilter: "sdxl",
|
||||
weightTypeFilter: "sd_1.5",
|
||||
searcher: true,
|
||||
type: "weights",
|
||||
},
|
||||
{
|
||||
label: "Bookmarked",
|
||||
tabKey: "bookmarkedWeights",
|
||||
weightTypeFilter: "sdxl",
|
||||
weightTypeFilter: "sd_1.5",
|
||||
searcher: false,
|
||||
type: "weights",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user