Skip to content

Commit

Permalink
내일기 리스트 계정 연결 완료 / css오류 수정 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
minjoon97 authored Nov 5, 2024
1 parent ec92a46 commit d7a1781
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import ToastContainer from '@/features/Toast/ui/ToastContainer';
import { RouterProvider } from 'react-router-dom';
import router from './router';
import MyDiaryListPage from '@/pages/MyDiaryListPage';

const queryClient = new QueryClient();

Expand All @@ -12,6 +13,7 @@ const App: React.FC = () => {
<QueryClientProvider client={queryClient}>
<GlobalStyles />
<ToastContainer />
<MyDiaryListPage />
<RouterProvider router={router} />
</QueryClientProvider>
);
Expand Down
2 changes: 1 addition & 1 deletion src/features/chart/ui/EmotionChart.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export const ChartWrapper = styled.div<SkeletonProps>`
export const EmotionChartStlyed = styled.div`
max-width: 960px;
margin: auto;
padding: 150px 0;
padding-top: 150px;
`;
4 changes: 3 additions & 1 deletion src/pages/MyDiaryListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import EmotionChart from '@/features/chart/ui/EmotionChart';
import TimelineContainer from '@/widgets/timeline-container/TimelineContainer';
import { PickSort, MyDiaryListWrapper } from './indexCss';
import { useEffect, useState } from 'react';
import { useAuthStore } from '@/features/login/hooks/useAuthStore';

const MyDiaryListPage = () => {
const [sortState, setSortState] = useState('lastest');
const { email, userName, isLoggedin, setUserInfo } = useAuthStore();
useEffect(() => {
console.log(sortState);
}, [sortState]);
Expand Down Expand Up @@ -36,7 +38,7 @@ const MyDiaryListPage = () => {
<TimelineContainer
titleTarget="나"
sort={sortState}
email="[email protected]"
email={email}
/>
</MyDiaryListWrapper>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MyDiaryListPage/indexCss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const MyDiaryListWrapper = styled.div`

export const PickSort = styled.div<{ sortState: string }>`
position: absolute;
top: 0;
top: 150px;
right: 0;
display: flex;
gap: 1rem;
Expand Down

0 comments on commit d7a1781

Please sign in to comment.