mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
Initial commit
This commit is contained in:
commit
4d53d83769
73 files changed
+37728
No files matched your search
Executable
+35
@@ -0,0 +1,35 @@
|
||||
import { Admin, Resource } from "react-admin";
|
||||
import { dataProvider } from "./providers/supabaseProvider";
|
||||
import { PackList, PackEdit, PackCreate } from "./resources/packs";
|
||||
import { QuestionList, QuestionEdit, QuestionCreate } from "./resources/questions";
|
||||
import { ProfileList, ResponseList } from "./resources/users";
|
||||
import { authProvider } from "./providers/authProvider";
|
||||
|
||||
const App = () => (
|
||||
<Admin dataProvider={dataProvider} authProvider={authProvider} requireAuth>
|
||||
<Resource
|
||||
name="question_packs"
|
||||
list={PackList}
|
||||
edit={PackEdit}
|
||||
create={PackCreate}
|
||||
recordRepresentation="name"
|
||||
/>
|
||||
<Resource
|
||||
name="questions"
|
||||
list={QuestionList}
|
||||
edit={QuestionEdit}
|
||||
create={QuestionCreate}
|
||||
/>
|
||||
<Resource
|
||||
name="profiles"
|
||||
list={ProfileList}
|
||||
/>
|
||||
<Resource
|
||||
name="responses"
|
||||
list={ResponseList}
|
||||
/>
|
||||
<Resource name="couples" />
|
||||
</Admin>
|
||||
);
|
||||
|
||||
export default App;
|
||||
Reference in new issue
Block a user