Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Sep 8, 2024
1 parent 30285fc commit b0392a5
Show file tree
Hide file tree
Showing 33 changed files with 815 additions and 840 deletions.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
left: 0;
top: 0;
z-index: -51;
}
}
8 changes: 4 additions & 4 deletions src/api/constant/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';
import axios from "axios";

const BASE_URL = 'https://api.wrapto.app/';
const BASE_URL = "https://api.wrapto.app/";

export const BASE_INSTANCE = axios.create({
baseURL: BASE_URL,
Expand All @@ -13,8 +13,8 @@ BASE_INSTANCE.interceptors.request.use(
},
function err(error) {
// Do something with request error
if (error.response?.data?.error === (500 || '500'))
if (error.response?.data?.error === (500 || "500"))
console.error(error.response?.data?.error);
return Promise.reject(error);
},
);
);
19 changes: 9 additions & 10 deletions src/api/services/Transaction.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { SuccessDataT } from "types/apiResult";
import { BASE_INSTANCE } from "../constant";
import { TransactionT } from "types/Transactions";

import { SuccessDataT } from "types/apiResult"
import { BASE_INSTANCE } from "../constant"
import { TransactionT } from "types/Transactions"
export const searchServices = (data: string) => {
return BASE_INSTANCE.get(`/search?q=${data}`);
};

export const searchServices = (data:string) => {
return BASE_INSTANCE.get(`/search?q=${data}`)
}

export const getTransactions = () : Promise<SuccessDataT<TransactionT[]>>=> {
return BASE_INSTANCE.get(`/transactions/recent`)
}
export const getTransactions = (): Promise<SuccessDataT<TransactionT[]>> => {
return BASE_INSTANCE.get(`/transactions/recent`);
};
4 changes: 2 additions & 2 deletions src/assets/icons/ArrowsUpDown.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IconProps } from 'types/iconProps';
import { IconProps } from "types/iconProps";

export function ArrowsUpDown({ className }: IconProps) {
export function ArrowsUpDown({ className }: IconProps) {
return (
<svg
className={className}
Expand Down
66 changes: 33 additions & 33 deletions src/assets/icons/BurgerIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
import { IconProps } from "types/iconProps";

export function BurgerIcon({className}:IconProps) {
return (
<svg
className={className}
width="28"
height="18"
viewBox="0 0 28 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<line
y1="0.875"
x2="28"
y2="0.875"
stroke="white"
strokeWidth="1.5"
/>
<line
y1="8.875"
x2="28"
y2="8.875"
stroke="white"
strokeWidth="1.5"
/>
<line
y1="16.875"
x2="28"
y2="16.875"
stroke="white"
strokeWidth="1.5"
/>
</svg>
);
export function BurgerIcon({ className }: IconProps) {
return (
<svg
className={className}
width="28"
height="18"
viewBox="0 0 28 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<line
y1="0.875"
x2="28"
y2="0.875"
stroke="white"
strokeWidth="1.5"
/>
<line
y1="8.875"
x2="28"
y2="8.875"
stroke="white"
strokeWidth="1.5"
/>
<line
y1="16.875"
x2="28"
y2="16.875"
stroke="white"
strokeWidth="1.5"
/>
</svg>
);
}
6 changes: 3 additions & 3 deletions src/assets/icons/ChevronDown.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { IconProps } from 'types/iconProps';
import { IconProps } from "types/iconProps";

export function ChevronDown({ className }: IconProps) {
export function ChevronDown({ className }: IconProps) {
return (
<svg
className={className}
className={className}
width="25"
height="24"
viewBox="0 0 25 24"
Expand Down
36 changes: 18 additions & 18 deletions src/assets/icons/DiscordIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { IconProps } from "types/iconProps";

export function DiscordIcon({className}:IconProps) {
return (
<svg
className={className}
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M21.2637 24.8452C22.0086 25.7887 22.9024 26.8564 22.9024 26.8564C28.3896 26.6826 30.5 23.0824 30.5 23.0824C30.5 15.0875 26.9247 8.60723 26.9247 8.60723C23.3493 5.92572 19.9478 6.00021 19.9478 6.00021L19.6002 6.39747C23.8211 7.68856 25.7825 9.55072 25.7825 9.55072C23.2003 8.13548 20.6678 7.44028 18.3091 7.16716C16.5214 6.96853 14.8082 7.01819 13.2937 7.21682C13.1636 7.21682 13.0525 7.23574 12.9272 7.25707L12.8716 7.26647C12.0026 7.34096 9.89213 7.66374 7.23545 8.83069C6.31679 9.25278 5.77055 9.55072 5.77055 9.55072C5.77055 9.55072 7.83134 7.58925 12.3005 6.29815L12.0522 6.00021C12.0522 6.00021 8.65069 5.92572 5.07534 8.60723C5.07534 8.60723 1.5 15.0875 1.5 23.0824C1.5 23.0824 3.58561 26.6826 9.07277 26.8564C9.07277 26.8564 9.99144 25.7391 10.7363 24.7956C7.58305 23.8521 6.39127 21.8658 6.39127 21.8658C6.39127 21.8658 6.63956 22.0396 7.08647 22.2879C7.1113 22.3127 7.13613 22.3375 7.18579 22.3624C7.22304 22.3872 7.26029 22.4058 7.29754 22.4244C7.33477 22.4431 7.37201 22.4617 7.40925 22.4865C8.02997 22.8341 8.65069 23.1072 9.22175 23.3307C10.2397 23.7279 11.4563 24.1252 12.8716 24.3983C14.7337 24.7459 16.9187 24.8701 19.3022 24.4232C20.4692 24.2245 21.661 23.8769 22.9024 23.3555C23.7714 23.0327 24.7397 22.561 25.7577 21.8906C25.7577 21.8906 24.5163 23.9266 21.2637 24.8452ZM11.357 15.2613C9.94179 15.2613 8.82449 16.5028 8.82449 18.0173C8.82449 19.5319 9.96661 20.7733 11.357 20.7733C12.7723 20.7733 13.8896 19.5319 13.8896 18.0173C13.9144 16.5028 12.7723 15.2613 11.357 15.2613ZM20.4195 15.2613C19.0043 15.2613 17.887 16.5028 17.887 18.0173C17.887 19.5319 19.0291 20.7733 20.4195 20.7733C21.8348 20.7733 22.9521 19.5319 22.9521 18.0173C22.9521 16.5028 21.8348 15.2613 20.4195 15.2613Z"
fill="#3AE27D"
/>
</svg>
);
export function DiscordIcon({ className }: IconProps) {
return (
<svg
className={className}
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M21.2637 24.8452C22.0086 25.7887 22.9024 26.8564 22.9024 26.8564C28.3896 26.6826 30.5 23.0824 30.5 23.0824C30.5 15.0875 26.9247 8.60723 26.9247 8.60723C23.3493 5.92572 19.9478 6.00021 19.9478 6.00021L19.6002 6.39747C23.8211 7.68856 25.7825 9.55072 25.7825 9.55072C23.2003 8.13548 20.6678 7.44028 18.3091 7.16716C16.5214 6.96853 14.8082 7.01819 13.2937 7.21682C13.1636 7.21682 13.0525 7.23574 12.9272 7.25707L12.8716 7.26647C12.0026 7.34096 9.89213 7.66374 7.23545 8.83069C6.31679 9.25278 5.77055 9.55072 5.77055 9.55072C5.77055 9.55072 7.83134 7.58925 12.3005 6.29815L12.0522 6.00021C12.0522 6.00021 8.65069 5.92572 5.07534 8.60723C5.07534 8.60723 1.5 15.0875 1.5 23.0824C1.5 23.0824 3.58561 26.6826 9.07277 26.8564C9.07277 26.8564 9.99144 25.7391 10.7363 24.7956C7.58305 23.8521 6.39127 21.8658 6.39127 21.8658C6.39127 21.8658 6.63956 22.0396 7.08647 22.2879C7.1113 22.3127 7.13613 22.3375 7.18579 22.3624C7.22304 22.3872 7.26029 22.4058 7.29754 22.4244C7.33477 22.4431 7.37201 22.4617 7.40925 22.4865C8.02997 22.8341 8.65069 23.1072 9.22175 23.3307C10.2397 23.7279 11.4563 24.1252 12.8716 24.3983C14.7337 24.7459 16.9187 24.8701 19.3022 24.4232C20.4692 24.2245 21.661 23.8769 22.9024 23.3555C23.7714 23.0327 24.7397 22.561 25.7577 21.8906C25.7577 21.8906 24.5163 23.9266 21.2637 24.8452ZM11.357 15.2613C9.94179 15.2613 8.82449 16.5028 8.82449 18.0173C8.82449 19.5319 9.96661 20.7733 11.357 20.7733C12.7723 20.7733 13.8896 19.5319 13.8896 18.0173C13.9144 16.5028 12.7723 15.2613 11.357 15.2613ZM20.4195 15.2613C19.0043 15.2613 17.887 16.5028 17.887 18.0173C17.887 19.5319 19.0291 20.7733 20.4195 20.7733C21.8348 20.7733 22.9521 19.5319 22.9521 18.0173C22.9521 16.5028 21.8348 15.2613 20.4195 15.2613Z"
fill="#3AE27D"
/>
</svg>
);
}
1 change: 0 additions & 1 deletion src/assets/icons/GithubIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { IconProps } from "types/iconProps";

export function GithubIcon({ className }: IconProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/TransferSection/TransferBoxes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function TransferBoxes({
setTransferFrom(maxContract);
};
const fee = handleFee(+transferFrom);

return (
<>
<div className="space-y-sp7">
Expand Down
Loading

0 comments on commit b0392a5

Please sign in to comment.