Skip to content

Commit

Permalink
react: rename autocomplete files
Browse files Browse the repository at this point in the history
  • Loading branch information
arpansaha13 committed Nov 10, 2023
1 parent d7bf493 commit f274042
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useRef } from 'react';
import { useAutoComplete } from './hooks/useAutocomplete.ts';
import { useAutoComplete } from './hooks/useAutocompleteOffline.ts';
import { suggestionsList } from './countryList.ts';
import styles from './autocomplete.module.scss';



const Autocomplete = () => {
const [userText, handleInput, suggestionFocus, suggestions, handleKeyDown, handleClick, handleSuggestionFocus] = useAutoComplete(
suggestionsList
Expand Down
6 changes: 3 additions & 3 deletions react/src/pages/Challenge.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Accordion from '@/machine-coding/accordion/App';
import Autocomplete from '@/machine-coding/autocomplete-offline/autocomplete';
import AutocompleteOnline from '@/machine-coding/autocomplete-offline/autocompleteOnline';
import AutocompleteOffline from '@/machine-coding/autocomplete/autocompleteOffline';
import AutocompleteOnline from '@/machine-coding/autocomplete/autocompleteOnline';
import BMICalculator from '@/machine-coding/bmi-calculator/App';
import ChallengeNavbar from '@/components/challenge-navbar/ChallengeNavbar';
import Background from '@/machine-coding/background-changer/Background';
Expand Down Expand Up @@ -60,7 +60,7 @@ const reactChallenges = {
progressbar: <ProgressBar />,
'infinite-scrolling': <InfiniteScrolling />,
'file-explorer': <FileExplorer />,
'autocomplete-offline': <Autocomplete />,
'autocomplete-offline': <AutocompleteOffline />,
'autocomplete-online': <AutocompleteOnline />,
'tic-tac-toe': <TicTacToe />,
stack: <Stack />,
Expand Down

0 comments on commit f274042

Please sign in to comment.