-
-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Galleries tab to Tag details page (#1195)
- Loading branch information
1 parent
23d8565
commit b63e8ef
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ui/v2.5/src/components/Tags/TagDetails/TagGalleriesPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
import * as GQL from "src/core/generated-graphql"; | ||
import { tagFilterHook } from "src/core/tags"; | ||
import { GalleryList } from "src/components/Galleries/GalleryList"; | ||
|
||
interface ITagGalleriesPanel { | ||
tag: GQL.TagDataFragment; | ||
} | ||
|
||
export const TagGalleriesPanel: React.FC<ITagGalleriesPanel> = ({ tag }) => { | ||
return <GalleryList filterHook={tagFilterHook(tag)} />; | ||
}; |