rht02251626
This commit is contained in:
parent
3a21c5bab0
commit
b0d0597d86
|
@ -69,10 +69,10 @@ export default function FilterSection({
|
|||
|
||||
return (
|
||||
<div className="bg-white p-6 rounded-lg shadow-sm space-y-6">
|
||||
<Form>
|
||||
{/* <Form>
|
||||
|
||||
</Form>
|
||||
{taxonomies.map((tax) => {
|
||||
</Form> */}
|
||||
{taxonomies?.map((tax) => {
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
|
@ -88,27 +88,6 @@ export default function FilterSection({
|
|||
})}
|
||||
|
||||
<Divider className="my-6" />
|
||||
|
||||
<div>
|
||||
<h3 className="text-lg font-medium mb-4">难度等级</h3>
|
||||
<Radio.Group
|
||||
value={selectedLevel}
|
||||
onChange={(e) => onLevelChange(e.target.value)}
|
||||
className="flex flex-col space-y-3">
|
||||
{levels.isLoading ? (
|
||||
<Spin />
|
||||
) : (
|
||||
<>
|
||||
<Radio value="">全部难度</Radio>
|
||||
{levels.categories.map((level) => (
|
||||
<Radio key={level} value={level}>
|
||||
{level}
|
||||
</Radio>
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</Radio.Group>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue