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

[FEAT] 유저 이탈 시 백엔드에 로그 보내기 #26

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: merge conflict
JjungminLee committed Feb 7, 2024
commit 61a5b46de26457d4e62f66bdbe459927f9eff5fb
10 changes: 6 additions & 4 deletions src/demo/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -5,23 +5,25 @@ import { LogScreen } from '../LogScreen';
export const Drawer = () => {
const [count, setCount] = useState(0);
const router = useLocation();
console.log(router.pathname);

return (
<>
<h1>Vite + React</h1>
<h1>Drawer</h1>
<div className="card">
<LogScreen
params={{
userId: 123,
path: router.pathname,
name: '',
userId: 'test',
serviceName: 'home',
}}
>
<LogClick
params={{
userId: 123,
name: 'click',
serviceName: 'home',
path: router.pathname,
userId: 'test',
}}
>
<button onClick={() => setCount((count) => count + 1)}>count is {count}</button>
14 changes: 0 additions & 14 deletions src/demo/Home.tsx
Original file line number Diff line number Diff line change
@@ -13,32 +13,18 @@ export const Home = () => {
<div className="card">
<LogScreen
params={{
<<<<<<< HEAD
userId: 123,
path: router.pathname,
name: '',
serviceName: 'drawer',
=======
path: router.pathname,
name: '',
userId: 'test',
serviceName: 'home',
>>>>>>> ed97f9870b5e20fb76dacae7939d2c7b46c8260f
}}
>
<LogClick
params={{
<<<<<<< HEAD
userId: 123,
name: 'click',
serviceName: 'drawer',
path: router.pathname,
=======
name: 'click',
serviceName: 'home',
path: router.pathname,
userId: 'test',
>>>>>>> ed97f9870b5e20fb76dacae7939d2c7b46c8260f
}}
>
<button onClick={() => setCount((count) => count + 1)}>count is {count}</button>