Skip to content

Commit

Permalink
Merge pull request #67 from michaelcaxias/nova-api
Browse files Browse the repository at this point in the history
feat 🔧: removido seletores de API e padronizado API para a 01
  • Loading branch information
J-Pster authored Nov 3, 2022
2 parents 71916b1 + 64d85cc commit cd7dfa1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/context/Provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Provider({ children }) {
const [userEmail, setUserEmail] = usePersistedState('userEmail', 'Carregando...');

const [loading, setLoading] = useState(true);
const [serviceId, setServiceId] = usePersistedState('serviceId', 2);
const [serviceId, setServiceId] = usePersistedState('serviceId', 1);

const scheduleElementRef = useRef(null);

Expand Down
7 changes: 0 additions & 7 deletions src/pages/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import LoginButton from '../../components/LoginButton/LoginButton';
import Loading from '../../components/Loading/Loading';

import { AppWrap, MotionWrap } from '../../wrapper';
import APISelector from '../../components/APISelector/APISelector';
import Footer from '../../components/Footer/Footer';

import { images } from '../../constants';
Expand All @@ -32,12 +31,6 @@ const Login = () => {
</p>
<LoginButton />
</div>

<div className="app__flex login__changeapi">
<APISelector />
<p>Se der aplicativo bloqueado,
<br />troque de API, isso é temporário!</p>
</div>
</>
);

Expand Down
9 changes: 1 addition & 8 deletions src/pages/Scheduler/Scheduler.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
import React, { useContext } from 'react';
import React from 'react';

import SelectTime from '../../components/SelectTime/SelectTime';
import SelectColors from '../../components/SelectColors/SelectColors';
import TextArea from '../../components/TextArea/TextArea';
import AddEventButton from '../../components/AddEventButton/AddEventButton';
import APISelector from '../../components/APISelector/APISelector';

import { AppWrap, MotionWrap } from '../../wrapper';
import Header from '../../components/Header/Header';
import Footer from '../../components/Footer/Footer';

import { MyContext } from '../../context/Provider';

import './Scheduler.scss';

const Scheduler = () => {
const { serviceId } = useContext(MyContext);

const homePage = (
<section className="home-page">
<aside className="aside-content">
Expand All @@ -38,9 +33,7 @@ const Scheduler = () => {
</div>

<div className="schedule-footer">
<h4>Usando a API {serviceId}, se não conseguir adicionar, troque de API.</h4>
<div className="schedule-content-buttons">
<APISelector />
<AddEventButton />
</div>
</div>
Expand Down

1 comment on commit cd7dfa1

@vercel
Copy link

@vercel vercel bot commented on cd7dfa1 Nov 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.