Skip to content
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

Feature/user/user detail #14

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
🐛 fix: 높이 안맞는 문제 수정
soryeongk committed Apr 12, 2022
commit 3179b3976a365b1468230d5d437580cb8880c261
2 changes: 1 addition & 1 deletion src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ export default function Dashboard() {
<ChartWrapper />
</StChartWrapper>
<StUserWrapper>
<UserListWrapper />
<UserListWrapper shouldSetHeight={true} />
</StUserWrapper>
</StRowWrapper>
</StContent>
17 changes: 0 additions & 17 deletions src/pages/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
import { useEffect, useState } from "react";

import styled from "styled-components";
import { theme } from "styled-tools";
import { client } from "utils/api";
import { logo } from "assets";
import LoginWrapper from "components/login/LoginForm";

export default function Login() {
const [temp, setTemp] = useState();

const fetch = async () => {
const data: any = client.get("/contact");
setTemp(data);
};
useEffect(() => {
fetch();
}, []);

useEffect(() => {
console.log(temp);
}, [temp]);

return (
<StWrapper>
<StHeader>
2 changes: 1 addition & 1 deletion src/pages/User.tsx
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { UserDetail } from "components";
export default function User() {
return (
<StWrapper>
<UserListWrapper />
<UserListWrapper shouldSetHeight={false} />
<UserDetail />
</StWrapper>
);