Skip to content

3 - Custom <ChatList /> and search #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: 2-chat-engine-npm-component
Choose a base branch
from
Prev Previous commit
Next Next commit
pages refactor
  • Loading branch information
alamorre committed Apr 22, 2022
commit fab83fcc04f5ae7010058cfda16154e6c6ea2e88
4 changes: 2 additions & 2 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useContext } from "react";

import "./App.css";

import AuthPage from "./pages/auth";
import ChatsPage from "./pages/chats";
import AuthPage from "./authPage";
import ChatsPage from "./chatsPage";

import { Context } from "./context";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState, useContext } from "react";
import { Col, Row, Form, Input, Button, Checkbox, notification } from "antd";

import { login } from "./login";
import { Context } from "../../../context";
import { Context } from "../../context";

const Login = () => {
const [error, setError] = useState("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState, useContext } from "react";
import { Col, Row, Form, Input, Button, notification } from "antd";

import { createUser } from "./createUser";
import { Context } from "../../../context";
import { Context } from "../../context";

const Register = () => {
const [error, setError] = useState("");
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useContext } from "react";
import { Button } from "antd";

import { deleteUser } from "./deleteUser";
import { Context } from "../../../../../context";
import { Context } from "../../../../context";

const DeleteAccount = () => {
const { user, setUser } = useContext(Context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState, useContext } from "react";
import { Col, Row, Button, Form, Input, notification } from "antd";

import { updateUser } from "./updateUser";
import { Context } from "../../../../../context";
import { Context } from "../../../../context";

const EditAccount = (props) => {
const [error, setError] = useState("");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useContext } from "react";

import { Context } from "../../../context";
import { Context } from "../../context";

import MyAccount from "./MyAccount";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useContext } from "react";

import { Context } from "../../context";
import { Context } from "../context";

import Header from "./Header";

Expand Down