Create PDF with QR code on user create/edit

Change-Id: Ib89b68e956d96002ddbf6ac5ddcaea73b5b3e3fb
This commit is contained in:
Manuel Stahl
2020-02-07 16:25:32 +01:00
parent c9bce409d2
commit 0f7e4c1909
8 changed files with 219 additions and 3 deletions

View File

@@ -10,6 +10,8 @@ import UserIcon from "@material-ui/icons/Group";
import { ViewListIcon as RoomIcon } from "@material-ui/icons/ViewList";
import germanMessages from "./i18n/de";
import englishMessages from "./i18n/en";
import ShowUserPdf from "./components/ShowUserPdf";
import { Route } from "react-router-dom";
// TODO: Can we use lazy loading together with browser locale?
const messages = {
@@ -27,6 +29,9 @@ const App = () => (
authProvider={authProvider}
dataProvider={dataProvider}
i18nProvider={i18nProvider}
customRoutes={[
<Route key="showpdf" path="/showpdf" component={ShowUserPdf} />,
]}
>
<Resource
name="users"