Skip to content

Commit

Permalink
Update frontend code: change some texts, update API base URL, and upd…
Browse files Browse the repository at this point in the history
…ate socket.io connection URL.
  • Loading branch information
Gab committed Feb 6, 2024
1 parent 023f693 commit 418571d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion front/src/components/UsersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const UsersList: React.FC = () => {

return (
<Container>
<Title>Usuários</Title>
<Title>Bienvenue</Title>
<Separator />
{users.map((user) => (
<UserContent
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/UsersList/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Container = styled.div`
max-height: calc(100vh - 60px);
width: 200px;
background-color: #222;
background-color: #ffff;
overflow-y: scroll;
::-webkit-scrollbar {
Expand Down
2 changes: 1 addition & 1 deletion front/src/pages/SignUp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const SignUp: React.FC = () => {
value={password}
onChange={(event) => setPassword(event.target.value)}
/>
<button type='submit'>Entrer</button>
<button type='submit'>Validé</button>
</form>
<Link to='/'>Vous avez déja un compte ? <span>Cliquer ici !</span></Link>
</Container>
Expand Down
2 changes: 1 addition & 1 deletion front/src/services/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios";

const api = axios.create({
baseURL: "http://backend:3333",
baseURL: "http://localhost:3333",
});

export default api;
2 changes: 1 addition & 1 deletion front/src/services/socket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface IRequest {
const Socket = ({ user_id }: IRequest) => {
const socket = useMemo(
() =>
socketio("http://backend:3333", {
socketio("http://localhost:3333", {
query: { user_id },
}),
[user_id]
Expand Down

0 comments on commit 418571d

Please sign in to comment.