-
- setSortAscending(!sortAscending)
- }
- >
- {sortAscending ? (
-
- ) : (
-
- )}
-
+ {disabledSortViews.includes(currentViewType) ? (
+ <>>
+ ) : (
+ <>
+
+ setSortAscending(
+ !sortAscending,
+ )
+ }
+ >
+ {sortAscending ? (
+
+ ) : (
+
+ )}
+
+
+
+ {sortByData.map(
+ (option, index) => (
+
+ ),
+ )}
+
+ >
+ )}
+ setCurrentViewType(e.target.value)
+ }
size="small"
>
- {sortByData.map((option, index) => (
+ {viewType.map((option, index) => (