mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 19:29:51 -04:00
updated Pools to Group
This commit is contained in:
parent
100f2f815f
commit
4d7de9d014
|
@ -1,8 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
import { BrowserRouter, Route, Switch } from 'react-router-dom';
|
||||||
import Nav from './components/Nav';
|
import Nav from './components/Nav';
|
||||||
import Signin from './components/auth/Signin';
|
|
||||||
import Signup from './components/auth/Signup';
|
|
||||||
import Group from './components/Group';
|
import Group from './components/Group';
|
||||||
import Pool from './components/Pool';
|
import Pool from './components/Pool';
|
||||||
import Profile from './components/Profile';
|
import Profile from './components/Profile';
|
||||||
|
|
|
@ -3,8 +3,7 @@ import { API_ENDPOINT } from '../api';
|
||||||
|
|
||||||
const Group = (props) => {
|
const Group = (props) => {
|
||||||
const id = props.match.params.id;
|
const id = props.match.params.id;
|
||||||
const [state, setState] = useState({
|
const [pools, setPools] = useState([
|
||||||
Pools: [
|
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
pool_title: 'TJ Carpool',
|
pool_title: 'TJ Carpool',
|
||||||
|
@ -53,8 +52,7 @@ const Group = (props) => {
|
||||||
'What is the covid vaccination status of all the participants?',
|
'What is the covid vaccination status of all the participants?',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
]);
|
||||||
});
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(process.env);
|
console.log(process.env);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user