Skip to content

Commit

Permalink
refactor: rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
fikyair committed Sep 6, 2021
1 parent b35e013 commit 7a9b08a
Show file tree
Hide file tree
Showing 31 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/components/AutoComplete/autoComplete.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { FC, ChangeEvent, KeyboardEvent, useState, useEffect, useRef, ReactElement } from 'react'
import classNames from 'classnames'
import Icon from '../Icons_/icon'
import Input, { InputProps } from '../Inputs_/input'
import Icon from '../Icons/icon'
import Input, { InputProps } from '../Inputs/input'
import { scopedClass } from '../../utils/scopedClass'
import Transition from '../Transitions_/transition'
import Transition from '../Transitions/transition'
import useDebounce from '../../hooks/useDebounce'
import useClickOutside from '../../hooks/useClickOutside'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/InputDatePicker/dateView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { MouseEvent, Dispatch, SetStateAction } from "react";
import { ViewLayout } from "./viewLayout";
import DatePicker, { CalendarType } from "./datePicker";
import { Button } from "../Button/button";
import Icon from "../Icons_/icon";
import Icon from "../Icons/icon";
import HeaderTitle from "./headerTitle";
import { CalendarProps } from "./calendar";

Expand Down
2 changes: 1 addition & 1 deletion src/components/InputDatePicker/input.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext, useState } from "react";
import { DateContext, IPickerContext } from "./dateManager";
import { Input } from "../Inputs_/input";
import { Input } from "../Inputs/input";

function InputComponent() {
const { value } = useContext<IPickerContext>(DateContext);
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputDatePicker/monthYearView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { MouseEvent, MouseEventHandler } from "react";
import MonthPicker from "./monthPicker";
import ViewLayout from "./viewLayout";
import { Button } from "../Button/button";
import Icon from "../Icons_";
import Icon from "../Icons";
import { CalendarType } from "./datePicker";
import HeaderTitle from "./headerTitle";

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ReactElement, FC, ChangeEvent, InputHTMLAttributes, useState } f
import classNames from 'classnames'
import { IconProp } from '@fortawesome/fontawesome-svg-core'
import { scopedClass } from '../../utils/scopedClass'
import Icon from '../Icons_/icon'
import Icon from '../Icons/icon'

const sc = scopedClass('chocolate-input')

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/components/Menu/subMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { useContext, useState, FunctionComponentElement } from 'react';
import classNames from 'classnames';
import { MenuContext } from './menu';
import { MenuItemProps } from './menuItem';
import Icon from '../Icons_/icon';
import Transition from '../Transitions_/transition';
import Icon from '../Icons/icon';
import Transition from '../Transitions/transition';

export interface SubMenuProps {
index?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Progress/progress.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react';
import { ThemeProps } from '../Icons_/icon';
import { ThemeProps } from '../Icons/icon';
import { scopedClass } from '../../utils/scopedClass'

const sc = scopedClass('chocolate-progress')
Expand Down
4 changes: 2 additions & 2 deletions src/components/Select/select.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { ChangeEvent, useState, createContext, useRef } from 'react'
import classNames from 'classnames'
import { SelectOptionProps } from './selectOption'
import Input from '../Inputs_/input'
import Input from '../Inputs/input'
import { scopedClass } from '../../utils/scopedClass'
import Transition from '../Transitions_/transition'
import Transition from '../Transitions/transition'
import useClickOutside from '../../hooks/useClickOutside'

const sc = scopedClass('chocolate-select')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Meta, Story } from '@storybook/react';
import Tabs, { TabsProps } from './tabs';
import TabItem from './tabItem';
import Icon from '../Icons_/icon';
import Icon from '../Icons/icon';
import TabsDoc from './tab-doc.mdx'

const BaseTabs = (props: TabsProps) => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Tree/tree-node.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC, useRef, useEffect, ChangeEvent } from "react";
import { TreeSource } from "./tree";
import Icon from "../Icons_/icon";
import Icon from "../Icons/icon";
import { Key } from "./interface";
import Checkbox from "../Checkbox";

Expand Down
8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export { default as Button } from './components/button'
export { default as Menu } from './components/menu'
export { default as AutoComplete } from './components/AutoComplete'
export { default as Alert } from './components/alert'
export { default as Icon } from './components/Icons_'
export { default as Input } from './components/Inputs_'
export { default as Transition } from './components/Transitions_'
export { default as Icon } from './components/Icons'
export { default as Input } from './components/Inputs'
export { default as Transition } from './components/Transitions'
export { default as Tree } from './components/Tree'
export { default as Checkbox } from './components/checkbox'
export { default as DatePicker } from './components/InputDatePicker'
export { default as Progress } from './components/Progress'
export { default as Select } from './components/Select'
export { default as Tab } from './components/Tab_'
export { default as Tab } from './components/Tab'

0 comments on commit 7a9b08a

Please sign in to comment.