diff --git a/yaba-web/src/components/bookmark/bookmark.jsx b/yaba-web/src/components/bookmarks/bookmark.jsx
similarity index 87%
rename from yaba-web/src/components/bookmark/bookmark.jsx
rename to yaba-web/src/components/bookmarks/bookmark.jsx
index 80d8417..09ef9a0 100644
--- a/yaba-web/src/components/bookmark/bookmark.jsx
+++ b/yaba-web/src/components/bookmarks/bookmark.jsx
@@ -3,6 +3,7 @@ import { Row, Col, Form, Button } from "../external";
import DateTimeHelper from "../../utils/dateTimeHelper";
import "../../styles/component/bookmark.css";
import { useNavigate } from "react-router-dom";
+import { Tag } from "../../components";
export function Bookmark(props) {
const navigate = useNavigate();
@@ -16,9 +17,9 @@ export function Bookmark(props) {
{props.bookmark.title}
{props.bookmark.description.substring(0, 100)}
- {props.bookmark.tags.map((tag) => {
- return
- })}
+ {
+ props.bookmark.tags.map((tag) => )
+ }
{DateTimeHelper.getFriendlyDate(props.bookmark.createdOn)} |
diff --git a/yaba-web/src/components/index.js b/yaba-web/src/components/index.js
index ae531a7..e5072cf 100644
--- a/yaba-web/src/components/index.js
+++ b/yaba-web/src/components/index.js
@@ -1,12 +1,13 @@
import { Footer } from "./footer";
import { Header } from "./header";
-import { Bookmark } from "./bookmark/bookmark";
+import { Bookmark } from "./bookmarks/bookmark";
import { Auth0ProviderWithNavigate } from "./auth0ProviderWithNavigate";
import { ProtectedRoute } from "./protectedRoute";
import { SplashScreen } from "./shared/splashScreen";
import { SearchForm } from "./shared/searchForm";
import { UpsertTagModal } from "./tags/upsertTagModal";
import { InterceptModal } from "./shared/interceptModal";
+import { Tag } from "./tags/tag";
export {
Footer,
@@ -18,4 +19,5 @@ export {
SearchForm,
UpsertTagModal,
InterceptModal,
+ Tag,
};
\ No newline at end of file
diff --git a/yaba-web/src/components/tags/tag.jsx b/yaba-web/src/components/tags/tag.jsx
new file mode 100644
index 0000000..8709194
--- /dev/null
+++ b/yaba-web/src/components/tags/tag.jsx
@@ -0,0 +1,13 @@
+import React from "react";
+import { Button } from "../external";
+
+export function Tag(props) {
+ return (
+
+ );
+};
\ No newline at end of file
diff --git a/yaba-web/src/views/bookmarksListView.jsx b/yaba-web/src/views/bookmarksListView.jsx
index c2667bc..837e9d2 100644
--- a/yaba-web/src/views/bookmarksListView.jsx
+++ b/yaba-web/src/views/bookmarksListView.jsx
@@ -3,7 +3,7 @@ import { Alert, Col, Container, Row, Button, Modal, Dropdown, DropdownButton } f
import { Bookmark } from "../components";
import { useAuth0 } from "@auth0/auth0-react";
import { deleteBookmarks, getAllBookmarks, hideBookmarks } from "../api";
-import { SplashScreen, SearchForm } from "../components";
+import { SplashScreen, SearchForm, Tag } from "../components";
import { getTagGroups, isSubset, containsSubstring, flattenTagArrays } from "../utils";
export function BookmarksListView(props) {
@@ -334,11 +334,7 @@ export function BookmarksListView(props) {
{group.name}
{
- group.tags.map((tag) => {
- return
- })
+ group.tags.map((tag) => onTagSelected(true, tag)} />)
}
})