Skip to content

Commit

Permalink
chore: 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrevile committed Jul 14, 2024
1 parent 815f7da commit 16d71cc
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { QueryClientProvider } from '@sambad/web-domains/commmon';
import { Providers } from '@sambad/web-domains/commmon';
import { Inter } from 'next/font/google';

import type { Metadata } from 'next';
Expand All @@ -20,7 +20,7 @@ export default function RootLayout({
return (
<html lang="en">
<body className={inter.className}>
<QueryClientProvider>{children}</QueryClientProvider>
<Providers>{children}</Providers>
</body>
</html>
);
Expand Down
3 changes: 2 additions & 1 deletion packages/core/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ module.exports = {
},
],
'no-duplicate-imports': 'error',
'no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }],

'react/no-unknown-property': ['error', { ignore: ['css'] }],
Expand Down
3 changes: 1 addition & 2 deletions packages/web-domains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
},
"dependencies": {
"@tanstack/react-query": "^5.50.1",
"axios": "^1.7.2",
"qs": "^6.12.3"
"axios": "^1.7.2"
},
"devDependencies": {
"@sambad/sds": "workspace:*",
Expand Down
9 changes: 9 additions & 0 deletions packages/web-domains/src/common/contexts/Providers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use client';

import { PropsWithChildren } from 'react';

import { QueryClientProvider } from './QueryClientProvider';

export const Providers = ({ children }: PropsWithChildren) => {
return <QueryClientProvider>{children}</QueryClientProvider>;
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';
import { isServer, QueryClient, QueryClientProvider as TanstackProvider } from '@tanstack/react-query';

import type { PropsWithChildren } from 'react';
import { PropsWithChildren } from 'react';

const makeQueryClient = () => {
return new QueryClient({
Expand Down
1 change: 1 addition & 0 deletions packages/web-domains/src/common/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { QueryClientProvider } from './contexts/QueryClientProvider';
export { Providers } from './contexts/Providers';
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { useEffect, useState } from 'react';
import { useState } from 'react';

import { useHealthCheckQuery } from '../../../common/apis/queries/useHealthCheckQuery';

export const useFirstFeatureOfFirstDomainService = () => {
const [displayText, setDisplayText] = useState<string>('');

const { data } = useHealthCheckQuery();
useEffect(() => {
console.log(data);
}, [data]);

const handleChangeDisplayText = () => {
setDisplayText('Test Container Button Clicked');
Expand Down

0 comments on commit 16d71cc

Please sign in to comment.