Skip to content

Commit

Permalink
feat: move LogClick, LogScreen components
Browse files Browse the repository at this point in the history
- components 폴더 내로 분리했습니다.
  • Loading branch information
Hanna922 committed Feb 9, 2024
1 parent dfd36ab commit 992d4fa
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/LogClick.tsx → src/components/LogClick.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Children, cloneElement } from 'react';
import { useYLSLogger } from '.';
import { LogPayloadParams } from './types/LogType';
import { useYLSLogger } from '..';
import { LogPayloadParams } from '../types/LogType';

interface Props {
children: React.ReactElement;
Expand Down
4 changes: 2 additions & 2 deletions src/LogScreen.tsx → src/components/LogScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useYLSLogger } from '.';
import { useYLSLogger } from '..';
import { useEffect } from 'react';
import { LogPayloadParams } from './types/LogType';
import { LogPayloadParams } from '../types/LogType';

interface Props {
children: React.ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions src/demo/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BrowserRouter } from 'react-router-dom';
import { Routes, Route } from 'react-router-dom';
import { Routes, Route, BrowserRouter } from 'react-router-dom';
import { Home } from './Home';
import { Drawer } from './Drawer';

export const App = () => {
return (
<>
Expand Down
5 changes: 3 additions & 2 deletions src/demo/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { LogClick } from '../LogClick';
import { LogClick } from '../components/LogClick';
import { useLocation } from 'react-router-dom';
import { LogScreen } from '../LogScreen';
import { LogScreen } from '../components/LogScreen';

export const Drawer = () => {
const [count, setCount] = useState(0);
const router = useLocation();
Expand Down
4 changes: 2 additions & 2 deletions src/demo/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { LogClick } from '../LogClick';
import { LogClick } from '../components/LogClick';
import { useLocation } from 'react-router-dom';
import { LogScreen } from '../LogScreen';
import { LogScreen } from '../components/LogScreen';

export const Home = () => {
const [count, setCount] = useState(0);
Expand Down
1 change: 0 additions & 1 deletion src/demo/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { App } from './App';

Expand Down

0 comments on commit 992d4fa

Please sign in to comment.