Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions frontend/src/components/listeners/Feeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import {
Dialog,
DialogContent,
DialogTitle,
Divider,
FormControl,
FormControlLabel,
Grid,
IconButton,
Pagination,
Expand All @@ -31,7 +28,6 @@ import { Link } from "react-router-dom";
import DeleteIcon from "@mui/icons-material/Delete";
import { ErrorModal } from "../errors/ErrorModal";
import DeleteFeedModal from "./DeleteFeedModal";
import { EditFeedModal } from "./EditFeedModal";
import { CreateFeedModal } from "./CreateFeedModal";

export function Feeds() {
Expand Down Expand Up @@ -129,15 +125,17 @@ export function Feeds() {
<Grid container>
<Grid item xs={8} />
<Grid item xs={4}>
<Button
variant="contained"
onClick={() => {
setCreateFeedModalOpen(true);
}}
sx={{ float: "right" }}
>
Create New Feed
</Button>
{adminMode ? (
<Button
variant="contained"
onClick={() => {
setCreateFeedModalOpen(true);
}}
sx={{ float: "right" }}
>
Create New Feed
</Button>
) : null}
</Grid>
</Grid>
<Grid container spacing={2} paddingBottom={"16px"}>
Expand Down
Loading