Skip to content

Commit

Permalink
fix(admin): view version and auth status
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealenn committed Jun 19, 2022
1 parent b933860 commit 2a15878
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 332 deletions.
17 changes: 14 additions & 3 deletions admin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "opengarden-admin",
"version": "0.0.1",
"dependencies": {
"@fontsource/open-sans": "^4.x.x",
"@testing-library/jest-dom": "^5.x.x",
"@testing-library/react": "^13.x.x",
"@testing-library/user-event": "^13.x.x",
Expand All @@ -10,11 +11,11 @@
"express": "^4.x.x",
"jwt-decode": "^3.x.x",
"prop-types": "^15.x.x",
"ra-input-rich-text": "^4.1.5",
"ra-input-rich-text": "^4.x.x",
"react": "^18.x.x",
"react-admin": "^4.1.5",
"react-admin": "^4.x.x",
"react-dom": "^18.x.x",
"react-icons": "^4.4.0",
"react-icons": "^4.x.x",
"react-scripts": "5.x.x",
"web-vitals": "^2.x.x"
},
Expand Down
2 changes: 2 additions & 0 deletions admin/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { PlantCreate, PlantEdit, PlantShow, PlantsList } from "./views/plants";

const App = () => (
<Admin
title="OpenGarden"
requireAuth={true}
layout={OpenGardenAdminLayout}
authProvider={AuthProvider}
dataProvider={Provider(BASE_URL, HttpClient)}>
Expand Down
3 changes: 2 additions & 1 deletion admin/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './styles.css';
import "@fontsource/open-sans";
import './reset.css';
import './styles.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

Expand Down
Loading

0 comments on commit 2a15878

Please sign in to comment.