diff --git a/app/src/App.js b/app/src/App.js index f64e2287..2f92032e 100644 --- a/app/src/App.js +++ b/app/src/App.js @@ -81,18 +81,18 @@ export default function App() { useEventsInterval(); return - - {/* Context and style to handle switching between mobile/computer. */} - - {/* Toasts can be on any page. */} - - - + + + {/* Context and style to handle switching between mobile/computer. */} + + {/* Toasts can be on any page. */} + + - - - + + + } diff --git a/app/src/Tags.js b/app/src/Tags.js index 28cb7c68..16bbf79f 100644 --- a/app/src/Tags.js +++ b/app/src/Tags.js @@ -22,13 +22,21 @@ import { TableRow, } from "semantic-ui-react"; import {contrastingColor, HelpPopup} from "./components/Common"; -import {Button, Segment} from "./components/Theme"; +import {Segment} from "./components/Theme"; import _ from "lodash"; -import {Link} from "react-router-dom"; import {HexColorPicker} from "react-colorful"; +export const TagsContext = React.createContext({ + NameToTagLabel: null, + TagsGroup: null, + TagsLinkGroup: null, + fetchTags: null, + findTagByName: null, + tagNames: [], + tags: [], +}); + const DEFAULT_TAG_COLOR = '#000000'; -export const TagsContext = React.createContext({tags: [], fetchTags: null, findTagByName: null}); export function useTags() { const [tags, setTags] = React.useState(null); @@ -94,9 +102,9 @@ export function useTags() { } return {tagNames.map(i => - + - + )} } @@ -116,7 +124,7 @@ function EditTagLabel({tag, onDelete, onEdit}) { return - setConfirmDeleteOpen(true)} icon='close'/> + setConfirmDeleteOpen(true)} icon='trash'/> return <> -