Skip to content

Material to Antd UI changes#3

Open
mkayfour wants to merge 3 commits intodevelopmentfrom
ui/material-to-antd
Open

Material to Antd UI changes#3
mkayfour wants to merge 3 commits intodevelopmentfrom
ui/material-to-antd

Conversation

@mkayfour
Copy link
Contributor

Changes in the auth module

  • Register and Register Form
  • Login and Login Form
  • Forgot Password and Forgot Password Form
  • Reset Password and Reset Password Form

Changes in the app module

  • Dashboard
  • added Navbar and Sidebar components
  • Added illustrations

@mkayfour mkayfour requested a review from ulhas January 21, 2021 04:52
@mkayfour mkayfour self-assigned this Jan 21, 2021

import Routes from "./app/components/routing/Routes";

import "antd/dist/antd.css";
Copy link

Choose a reason for hiding this comment

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

Make a global css and put this there. Import the global css here.

const [text, setText] = useState("");

useEffect(() => {
Axios.get(source).then((result) => {
Copy link

Choose a reason for hiding this comment

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

it's better to wrap third party library like these for abstraction

!isAuthenticated ? (
<Redirect to="/login" />
) : privacyPolicyAccepted ? (
<Component {...props} />
Copy link

Choose a reason for hiding this comment

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

this is duplicated. can be avoided

<Content>
<div className="App">
<Switch>
<Route exact path="/" component={Login} />
Copy link

Choose a reason for hiding this comment

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

These routes can be extracted to a new component

style={{
display: "flex",
justifyContent: "center",
padding: "20px",
Copy link

Choose a reason for hiding this comment

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

if possible use spacer from antd for laying out elements

@ulhas
Copy link

ulhas commented Feb 24, 2021

The comments are optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants