mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Use default dropdown appearance for sort dropdown
This commit is contained in:
parent
aabb55e1dd
commit
1e2753502b
|
@ -213,9 +213,8 @@ export default class IndexPage extends Page {
|
|||
|
||||
items.add('sort',
|
||||
Dropdown.component({
|
||||
buttonClassName: "Select-input FormControl",
|
||||
buttonClassName: 'Button',
|
||||
label: sortOptions[this.params().sort] || Object.keys(sortMap).map(key => sortOptions[key])[0],
|
||||
caretIcon: "sort",
|
||||
children: Object.keys(sortOptions).map(value => {
|
||||
const label = sortOptions[value];
|
||||
const active = (this.params().sort || Object.keys(sortMap)[0]) === value;
|
||||
|
|
Loading…
Reference in New Issue
Block a user