-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix/TMS-1005: changed styles and refactoring code, switched styled co…
…mpoents and replace types of component
- Loading branch information
1 parent
9a37407
commit 7d73004
Showing
19 changed files
with
327 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import axios from 'axios'; | ||
import { localString } from 'types'; | ||
|
||
import { basicUrl } from '../constant'; | ||
|
||
export const getBooksApi = (queryParams: localString) => { | ||
export const getBooksApi = (queryParams: string) => { | ||
const response = axios.get(`${basicUrl}?q=${queryParams}&maxResults=40`); | ||
return response; | ||
}; | ||
|
||
export const getSortingBooksApi = (queryParams: localString) => { | ||
export const getSortingBooksApi = (queryParams: string) => { | ||
const response = axios.get(`${basicUrl}?q=${queryParams}&maxResults=40`); | ||
return response; | ||
}; | ||
|
||
export const getBookByIDApi = (queryParams: localString) => { | ||
export const getBookByIDApi = (queryParams: string) => { | ||
const response = axios.get(`${basicUrl}/${queryParams}`); | ||
return response; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
import { FC } from 'react'; | ||
import { IPropsButton } from 'types'; | ||
|
||
import * as S from './index.styles'; | ||
|
||
interface IPropsButton { | ||
buttonName: string; | ||
className?: string; | ||
handleClick?: () => void; | ||
} | ||
|
||
export const Button: FC<IPropsButton> = ({ | ||
onClick, | ||
handleClick, | ||
buttonName, | ||
className, | ||
}): JSX.Element => { | ||
|
||
return ( | ||
<S.ContainerButton onClick={onClick} className={className}> | ||
<span>{buttonName}</span> | ||
<S.ContainerButton onClick={handleClick} className={className}> | ||
<S.Inline>{buttonName}</S.Inline> | ||
</S.ContainerButton> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.