diff --git a/app/package.json b/app/package.json index 5604890c..d417c2d5 100644 --- a/app/package.json +++ b/app/package.json @@ -14,7 +14,6 @@ "react-dom": "^18.2.0", "react-dropzone": "^14.2.3", "react-qr-code": "^2.0.11", - "react-reader": "^1.0.2", "react-router-dom": "^6.8.0", "react-scripts": "5.0.1", "react-semantic-toasts-2": "^0.6.7", diff --git a/app/src/Tags.js b/app/src/Tags.js index eec474ab..48c641d4 100644 --- a/app/src/Tags.js +++ b/app/src/Tags.js @@ -32,6 +32,7 @@ import _ from "lodash"; import {HexColorPicker} from "react-colorful"; import {useRecurringTimeout} from "./hooks/customHooks"; import {Media} from "./contexts/contexts"; +import {Link} from "react-router-dom"; export const TagsContext = React.createContext({ NameToTagLabel: null, @@ -109,9 +110,9 @@ export function useTags() { } return {tagNames.map(i => - + - + )} } diff --git a/app/src/components/Channels.js b/app/src/components/Channels.js index c2948934..68bfc3d8 100644 --- a/app/src/components/Channels.js +++ b/app/src/components/Channels.js @@ -45,7 +45,7 @@ import { Table } from "./Theme"; import Dropdown from "semantic-ui-react/dist/commonjs/modules/Dropdown"; -import {Media} from "../contexts/contexts"; +import {Media, ThemeContext} from "../contexts/contexts"; import {SortableTable} from "./SortableTable"; import {ChannelPlaceholder} from "./Placeholder"; import {toast} from "react-semantic-toasts-2"; @@ -436,11 +436,12 @@ export function NewChannel(props) { } function ChannelRow({channel}) { - const navigate = useNavigate(); - - const editTo = `/videos/channel/${channel.id}/edit`; const videosTo = `/videos/channel/${channel.id}/video`; + const {inverted} = React.useContext(ThemeContext); + const editTo = `/videos/channel/${channel.id}/edit`; + const buttonClass = `ui button secondary ${inverted ? 'inverted' : ''}`; + return {channel.name} @@ -455,7 +456,7 @@ function ChannelRow({channel}) { {channel.url && channel.download_frequency ? secondsToFrequency(channel.download_frequency) : null} - + Edit ; }