Skip to content

Commit

Permalink
style: 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Aug 15, 2024
1 parent 0cab0f8 commit ca61266
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useEditableItemContext = () => {
return context;
};

export const EditableItmProvider: React.FC<PropsWithChildren> = ({children}: React.PropsWithChildren) => {
export const EditableItemProvider: React.FC<PropsWithChildren> = ({children}: React.PropsWithChildren) => {
const [hasAnyFocus, setHasAnyFocus] = useState(false);

return <EditableItemContext.Provider value={{hasAnyFocus, setHasAnyFocus}}>{children}</EditableItemContext.Provider>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {Meta, StoryObj} from '@storybook/react';
import EditableItemInput from '@components/EditableItem/EditableItem.Input';

import EditableItem from './EditableItem';
import {EditableItmProvider} from './EditableItem.context';
import {EditableItemProvider} from './EditableItem.context';

const meta = {
title: 'Components/EditableItemInput',
Expand Down Expand Up @@ -36,9 +36,9 @@ type Story = StoryObj<typeof meta>;
export const Playground: Story = {
render: ({...args}) => {
return (
<EditableItmProvider>
<EditableItemProvider>
<EditableItem.Input {...args} />
</EditableItmProvider>
</EditableItemProvider>
);
},
};
6 changes: 3 additions & 3 deletions HDesign/src/components/EditableItem/EditableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {useTheme} from '@theme/HDesignProvider';
import {editableItemStyle} from './EditableItem.style';
import EditableItemInput from './EditableItem.Input';
import {EditableItemProps} from './EditableItem.type';
import {EditableItmProvider, useEditableItemContext} from './EditableItem.context';
import {EditableItemProvider} from './EditableItem.context';
import useEditableItem from './useEditableItem';

const EditableItemBase = ({
Expand All @@ -29,9 +29,9 @@ const EditableItemBase = ({

export const EditableItem = (props: EditableItemProps) => {
return (
<EditableItmProvider>
<EditableItemProvider>
<EditableItemBase {...props} />
</EditableItmProvider>
</EditableItemProvider>
);
};

Expand Down

0 comments on commit ca61266

Please sign in to comment.