remove unused code, add todo comment
This commit is contained in:
@@ -99,12 +99,10 @@ function DialogInner({
|
|||||||
} else if (isEmpty) {
|
} else if (isEmpty) {
|
||||||
_items = _items.concat([EMPTY])
|
_items = _items.concat([EMPTY])
|
||||||
} else if (data) {
|
} else if (data) {
|
||||||
|
// TODO: Add starter packs! -sfn
|
||||||
const curateLists = data.filter(
|
const curateLists = data.filter(
|
||||||
list => list.purpose === 'app.bsky.graph.defs#curatelist',
|
list => list.purpose === 'app.bsky.graph.defs#curatelist',
|
||||||
)
|
)
|
||||||
const starterPacks = data.filter(
|
|
||||||
list => list.purpose === 'app.bsky.graph.defs#referencelist',
|
|
||||||
)
|
|
||||||
const modLists = data.filter(
|
const modLists = data.filter(
|
||||||
list => list.purpose === 'app.bsky.graph.defs#modlist',
|
list => list.purpose === 'app.bsky.graph.defs#modlist',
|
||||||
)
|
)
|
||||||
@@ -118,16 +116,6 @@ function DialogInner({
|
|||||||
curateLists.map(list => ({type: 'list', list})),
|
curateLists.map(list => ({type: 'list', list})),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (starterPacks.length > 0) {
|
|
||||||
_items = _items.concat(
|
|
||||||
{
|
|
||||||
type: 'section-header',
|
|
||||||
title: _(msg`Starter packs`),
|
|
||||||
_reactKey: 'referencelist',
|
|
||||||
},
|
|
||||||
starterPacks.map(list => ({type: 'list', list})),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
if (modLists.length > 0) {
|
if (modLists.length > 0) {
|
||||||
_items = _items.concat(
|
_items = _items.concat(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user