Skip to content

Commit 27f24a7

Browse files
committed
Fixed error in readme and removed unused imports
1 parent ba6ef09 commit 27f24a7

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ The project is divided in two main folders. One is for the actual library, and t
164164
1. Install the dependencies of the library and the example app:
165165

166166
```bash
167-
npm i && cd example-app && npm i && cd ..
167+
npm i && cd app && npm i && cd ..
168168
```
169169

170170
2. Link the library to the example app from root:

app/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HalTable, HalAutocomplete } from "@dxc-technology/halstack-react-hal";
22
import { DxcApplicationLayout, DxcInset, DxcHeading, DxcFlex } from "@dxc-technology/halstack-react";
3-
import React from "react";
43

54
function App() {
65
return (

src/components/HalAutocomplete.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback } from "react";
1+
import React from "react";
22
import { DxcTextInput } from "@dxc-technology/halstack-react";
33
import { HalApiCaller } from "@dxc-technology/halstack-client";
44
import { HalAutocompleteProps } from "./types";
@@ -13,7 +13,7 @@ const HalAutocomplete = ({
1313
propertyName,
1414
...childProps
1515
}: HalAutocompleteProps): JSX.Element => {
16-
const getSuggestionsFromAPI = useCallback(
16+
const getSuggestionsFromAPI = React.useCallback(
1717
async (value: string): Promise<string[]> => {
1818
const asyncHeadears = asyncHeadersHandler ? await asyncHeadersHandler() : {};
1919
const response = await HalApiCaller.get({

src/components/Icons.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
const icons = {
42
arrowUp: (
53
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="white">

0 commit comments

Comments
 (0)