Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
54 add report and issue button (#59)
Browse files Browse the repository at this point in the history
* move MarkdownArticle to article article component directory

* add report and issue button

* increment version
  • Loading branch information
dpgraham4401 authored Jul 7, 2023
1 parent 3f0fbe1 commit 9af59aa
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dpg-client/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ image:
pullPolicy: Always
port: 3000
# Overrides the image tag whose default is the chart appVersion (i.e., should be the git/release tag)
tag: "v0.0.25"
tag: "v0.0.26"

imagePullSecrets: [ ]
nameOverride: ""
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dpgraham-client",
"version": "0.0.25",
"version": "0.0.26",
"private": true,
"scripts": {
"start": "vite",
Expand Down
5 changes: 0 additions & 5 deletions src/components/ArticlesOverview/index.ts

This file was deleted.

23 changes: 23 additions & 0 deletions src/components/Nav/NavDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { GitHub, OpenInNew } from "@mui/icons-material";
import {
Divider,
Drawer,
Expand Down Expand Up @@ -60,6 +61,28 @@ export function NavDrawer({ showMenu, setShowMenu }: NavDrawerProps) {
</ListItem>
))}
</List>
<List style={{ marginTop: "auto" }}>
<ListItem disablePadding>
<ListItemButton
href="https://github.com/dpgraham4401/dpgraham-client/issues"
target="_blank"
rel="noreferrer"
>
<ListItemIcon>
<GitHub />
</ListItemIcon>
<ListItemText
primary={
<div style={{ display: "flex", alignContent: "baseline" }}>
Report and Issue
<OpenInNew fontSize={"small"} sx={{ marginLeft: 1 }} />
</div>
}
secondary="Found a bug? Give us your feedback"
/>
</ListItemButton>
</ListItem>
</List>
</Drawer>
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from "@testing-library/react";
import { ArticleCard } from "components/ArticlesOverview";
import { ArticleCard } from "components/article";
import { Article } from "features/Articles";
import React from "react";
import { BrowserRouter } from "react-router-dom";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from "@testing-library/react";
import { ArticlesGrid } from "components/ArticlesOverview/ArticlesGrid";
import { ArticlesGrid } from "components/article/ArticlesGrid";
import { Article } from "features/Articles";
import React from "react";
import { BrowserRouter } from "react-router-dom";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Grid } from "@mui/material";
import { ArticleCard } from "components/ArticlesOverview/ArticleCard";
import { ArticleCard } from "components/article/ArticleCard";
import { Article } from "features/Articles";
import React from "react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CircularProgress, Container, Grid } from "@mui/material";
import { ArticlesGrid } from "components/ArticlesOverview/ArticlesGrid";
import { ArticlesGrid } from "components/article/ArticlesGrid";
import { DpgPageError } from "components/DpgError";
import { Article } from "features/Articles";
import React from "react";
Expand Down
6 changes: 6 additions & 0 deletions src/components/article/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArticleCard } from "components/article/ArticleCard";
import { ArticlesGrid } from "components/article/ArticlesGrid";
import { ArticlesOverview } from "components/article/ArticlesOverview";
import { MarkdownArticle } from "components/article/MarkdownArticle";

export { ArticlesOverview, ArticleCard, ArticlesGrid, MarkdownArticle };
3 changes: 1 addition & 2 deletions src/features/Articles/Articles.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Box } from "@mui/material";
import { ArticlesOverview } from "components/ArticlesOverview";
import { MarkdownArticle } from "components/MarkdownArticle";
import { ArticlesOverview, MarkdownArticle } from "components/article";
import React from "react";
import { Route, Routes } from "react-router-dom";

Expand Down

0 comments on commit 9af59aa

Please sign in to comment.