Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
"react-scripts": "5.0.1",
"redux": "^4.2.1",
"typescript": "^4.9.4",
"web-vitals": "^2.1.4"
},
Expand All @@ -42,6 +43,7 @@
"jsx-a11y/anchor-is-valid": [
"off"
],
"import/prefer-default-export": "off",
"react/require-default-props": [
0
],
Expand Down
5 changes: 5 additions & 0 deletions src/App.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.app {
margin: 0 auto;
max-width: 1218px;
border: 1px solid red;
}
19 changes: 2 additions & 17 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import React from "react";
import styles from "./App.module.css";

function App() {
return (
<div className="App">
<header className="App-header">
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
return <div className={styles.app}>тест</div>;
}

export default App;
3 changes: 3 additions & 0 deletions src/icons/invisibility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/icons/visibility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* {
box-sizing: border-box;
}

body {
margin: 0;
background-color: #e1e1e1;
}
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import { Provider } from "react-redux";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { store } from "./services";
import { Provider } from "react-redux";

const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
root.render(
Expand Down
4 changes: 3 additions & 1 deletion src/services/reducers/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { combineReducers } from "redux";
import { testReducers, testActions } from "./testReducer";
import { testReducers } from "./testReducer";

export { testActions } from "./testReducer";

export const rootReducer = combineReducers({
test: testReducers,
Expand Down
4 changes: 3 additions & 1 deletion src/services/reducers/testReducer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-param-reassign */

import { createSlice } from "@reduxjs/toolkit";
import type { PayloadAction } from "@reduxjs/toolkit";

Expand All @@ -12,7 +14,7 @@ const testSlice = createSlice({
initialState: testState,
reducers: {
userAuth(state, action: PayloadAction<boolean>) {
state.isAuth = true;
state.isAuth = action.payload;
},
},
});
Expand Down