Skip to content

Commit

Permalink
fix: removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechan99 committed Sep 26, 2024
1 parent 2523f6c commit f2f1b54
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/ContextMenu/ContextMenuProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const ContextMenuContainer = React.forwardRef<HTMLDivElement, React.Compo
<div
ref={composeRefs(compRef, ref)}
onContextMenu={composeEventHandlers(onContextMenu, evt => {
console.log(evt.button);
if (evt.button !== 2) return;
evt.preventDefault();
// if (compRef.current) {
Expand Down
1 change: 0 additions & 1 deletion src/components/Search/SearchInputToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const SearchInputToggle = React.forwardRef<HTMLInputElement, ComponentPro
};

const handleOnKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
console.log(e);
const handler = ACTIONS[e.key];

if (handler) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export { Toast, ToastDescription, ToastTitle } from './Toast';

// eslint-disable-next-line react-refresh/only-export-components
export { useToast } from './useToast';
export type { ToastData } from './type';
2 changes: 1 addition & 1 deletion src/stories/common/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';

import { Button, Toaster, useToast } from '../..';
import { ToastData } from '../../components/common/Toast/type';
import { ToastData } from '../../components/Toast';

const ToastForStory = ({ ...props }: ToastData) => {
const { toast } = useToast();
Expand Down

0 comments on commit f2f1b54

Please sign in to comment.