Skip to content

Commit

Permalink
Merge pull request #45 from redstonekasi/develop
Browse files Browse the repository at this point in the history
moonbase: fix filter bar tag item search
  • Loading branch information
NotNite authored May 5, 2024
2 parents fee7f46 + fc548e1 commit c06ae47
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//import { tagNames } from "./info";
import { tagNames } from "./info";
import {
ArrowsUpDownIconSVG,
ChevronSmallDownIconSVG,
Expand Down Expand Up @@ -48,16 +48,16 @@ const FilterDialogClasses = spacepack.findByCode(
const FilterBarClasses = spacepack.findByCode("tagsButtonWithCount:")[0]
.exports;

/*const TagItem = spacepack.findByCode("IncreasedActivityForumTagPill:")[0]
.exports.default;*/
const TagItem = spacepack.findByCode(".FORUM_TAG_A11Y_FILTER_BY_TAG")[0].exports
.default;

const ChevronSmallDownIcon = spacepack.findByCode(ChevronSmallDownIconSVG)[0]
.exports.default;
const ChevronSmallUpIcon = spacepack.findByCode(ChevronSmallUpIconSVG)[0]
.exports.default;
let ArrowsUpDownIcon: React.FunctionComponent;

/*function toggleTag(
function toggleTag(
selectedTags: Set<string>,
setSelectedTags: (tags: Set<string>) => void,
tag: string
Expand All @@ -66,7 +66,7 @@ let ArrowsUpDownIcon: React.FunctionComponent;
if (newState.has(tag)) newState.delete(tag);
else newState.add(tag);
setSelectedTags(newState);
}*/
}

function FilterButtonPopout({
filter,
Expand Down Expand Up @@ -179,7 +179,7 @@ function TagButtonPopout({
</div>
</div>
</div>
{/*<div className={FilterDialogClasses.tagContainer}>
<div className={FilterDialogClasses.tagContainer}>
{Object.keys(tagNames).map((tag) => (
<TagItem
key={tag}
Expand All @@ -189,7 +189,7 @@ function TagButtonPopout({
selected={selectedTags.has(tag)}
/>
))}
</div>*/}
</div>
<div className={FilterDialogClasses.separator} />
<Button
look={Button.Looks.LINK}
Expand Down Expand Up @@ -291,7 +291,7 @@ function FilterBar({
)}
</Popout>
<div className={FilterBarClasses.divider} />
{/*<div className={FilterBarClasses.tagList}>
<div className={FilterBarClasses.tagList}>
<div ref={tagListInner} className={FilterBarClasses.tagListInner}>
{Object.keys(tagNames).map((tag) => (
<TagItem
Expand All @@ -303,7 +303,7 @@ function FilterBar({
/>
))}
</div>
</div>*/}
</div>
<Popout
renderPopout={({ setPopoutRef, closePopout }: any) => (
<TagButtonPopout
Expand Down

0 comments on commit c06ae47

Please sign in to comment.