Skip to content

Commit

Permalink
Fix: tagfilter css 수정, react-query staleTime cacheTime 설정 (#92)
Browse files Browse the repository at this point in the history
* Fix: tagfilter css 수정, react-query staleTime cacheTime 설정

* Fix: 처음 들어갈때 깜빡거리는 것 처럼 안 보이게 수정
  • Loading branch information
Nangniya authored Feb 20, 2024
1 parent c1cd796 commit 52267bc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/apis/loginApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HTTP_URL } from '.';

export const login = async (code: string) => {
const res = await fetch(`${HTTP_URL}/kakao/login?code=${code}`);
const res = await fetch(`${HTTP_URL}/kakao/login/local?code=${code}`);
const data = await res.json();
return data;
};
1 change: 0 additions & 1 deletion src/components/Tag/AllTags/AllTags.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
.container {
display: flex;
flex-direction: column;
margin-bottom: 70px;
padding: 8px 16px;
}
8 changes: 7 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import App from './App';
import './index.css';

const client = new QueryClient({
defaultOptions: { queries: { refetchOnWindowFocus: false } },
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
staleTime: 1000 * 20,
cacheTime: 1000 * 60 * 5,
},
},
});

const root = ReactDOM.createRoot(
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Tag/TagFilter/TagFilter.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ button {
}

.btnContainer {
position: absolute;
bottom: 12px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
width: 100%;
padding: 0px 16px;
padding: 12px 16px;
position: absolute;
bottom: -108px;

.initBtn {
box-sizing: border-box;
Expand Down

0 comments on commit 52267bc

Please sign in to comment.