Skip to content

Commit

Permalink
#68 Changed files structure for steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
artzub committed Feb 3, 2022
1 parent 15bd7f3 commit 03d7a63
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const TopHeader = (
</ListSubheader>
);

const UserSearch = () => {
const Body = () => {
const dispatch = useDispatch();
const inputRef = useRef();
const [search, setSearch] = useState('');
Expand Down Expand Up @@ -171,4 +171,4 @@ const UserSearch = () => {
);
};

export default UserSearch;
export default Body;
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import slice from '@/redux/modules/profiles';
import { Avatar } from "@material-ui/core";
import { default as LinkOrigin } from "@material-ui/core/Link";
import LinkOrigin from "@material-ui/core/Link";
import GithubIcon from "mdi-react/GithubIcon";
import LinkVariantIcon from "mdi-react/LinkVariantIcon";
import SourceRepositoriesIcon from "mdi-react/SourceRepositoriesIcon";
Expand Down Expand Up @@ -79,7 +79,7 @@ const PropertyValue = styled.div`
margin-left: 2px;
`;

const User = (props) => {
const Header = (props) => {
const { profile } = useSelector(slice.selectors.getState);

return (
Expand Down Expand Up @@ -119,4 +119,4 @@ const User = (props) => {
);
};

export default User;
export default Header;
10 changes: 5 additions & 5 deletions src/components/Header/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import React, { useCallback, useState } from 'react';
import FetchTopUser from "@/components/Header/FetchTopUser";
import User from "@/components/Header/User";
import UserSearch from "@/components/Header/UserSearch";
import { StageTypes } from "@/models/StageTypes";
import { useUIProperty } from "@/shared/hooks";
import Collapse from "@material-ui/core/Collapse";
Expand All @@ -10,6 +7,9 @@ import Paper from "@material-ui/core/Paper";
import { withStyles } from "@material-ui/core/styles";
import Tab from "@material-ui/core/Tab";
import Tabs from "@material-ui/core/Tabs";
import UserStepBody from "./components/UserStep/Body";
import FetchTopUser from "./components/UserStep/FetchTopUser";
import UserStepHeader from "./components/UserStep/Header";

const PaperStyled = withStyles(() => ({
root: {
Expand All @@ -21,7 +21,7 @@ const PaperStyled = withStyles(() => ({
}))(Paper);

const StepBodies = {
[StageTypes.user]: UserSearch,
[StageTypes.user]: UserStepBody,
};

const Header = () => {
Expand Down Expand Up @@ -59,7 +59,7 @@ const Header = () => {
<Tab label="Show" />
</Tabs>
<Grid container>
<User onClick={onClick(StageTypes.user)} />
<UserStepHeader onClick={onClick(StageTypes.user)} />
<div>
Repository
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Main.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { default as ContainerOriginal } from '@material-ui/core/Container';
import ContainerOriginal from '@material-ui/core/Container';
import { withStyles } from '@material-ui/core/styles';

const Container = withStyles({
Expand Down

0 comments on commit 03d7a63

Please sign in to comment.