Skip to content

Commit

Permalink
Revert "feat: 카카오 인앱프라우저로 접속시 다른 브라우저로 열기 안내 토스트 구현 (#120)"
Browse files Browse the repository at this point in the history
This reverts commit 0a37e5a.
  • Loading branch information
cheonjiyun authored Sep 7, 2024
1 parent 0a37e5a commit ef33c70
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 54 deletions.
13 changes: 2 additions & 11 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Game from './pages/Game';
import InputCode from './pages/InputCode';
import InputName from './pages/InputName';
import NotFound from './pages/NotFound';
import CheckInAppBrowser from './routers/CheckInAppBrowser';

interface RouteElement {
path: string;
Expand All @@ -23,19 +22,11 @@ const routes: RouteElement[] = [
},
{
path: 'create',
element: (
<CheckInAppBrowser>
<CreateRoom />
</CheckInAppBrowser>
),
element: <CreateRoom />,
},
{
path: '/participate',
element: (
<CheckInAppBrowser>
<InputCode />
</CheckInAppBrowser>
),
element: <InputCode />,
},
{
path: '/name',
Expand Down
18 changes: 1 addition & 17 deletions src/components/toast/NotifyToast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import toast from 'react-hot-toast';

import { VariablesCSS } from '../../styles/VariablesCSS';

export const notifyUseToast = (message: string, whereUse: 'LOBBY' | 'INVITE' | 'WARNING') => {
export const notifyUseToast = (message: string, whereUse: 'LOBBY' | 'INVITE') => {
if (whereUse === 'LOBBY') {
return toast(message, {
duration: 3000,
Expand All @@ -16,22 +16,6 @@ export const notifyUseToast = (message: string, whereUse: 'LOBBY' | 'INVITE' | '
},
});
}
if (whereUse === 'WARNING') {
return toast(message, {
duration: 8000,
position: 'bottom-center',
style: {
marginBottom: '50%',
textAlign: 'center',
color: VariablesCSS.night,
background: 'linear-gradient(118.95deg, #dfcfeb 0%, #c9abca 100%)',
border: '3px solid #ffffff',
borderRadius: '15px',
fontFamily: 'KCC-Hanbit',
},
});
}

return toast(message, {
duration: 3000,
position: 'bottom-center',
Expand Down
Empty file removed src/hooks/useInAppBrowser
Empty file.
26 changes: 0 additions & 26 deletions src/routers/CheckInAppBrowser.tsx

This file was deleted.

0 comments on commit ef33c70

Please sign in to comment.