From 1742fdf790112ec30c6734d3136e69a6cfd07d2d Mon Sep 17 00:00:00 2001 From: Dhai Date: Wed, 18 Dec 2024 12:22:48 +0530 Subject: [PATCH] prettier fix --- frontend/src/App.tsx | 2 +- frontend/src/components/modals/HarvestModal.tsx | 6 ++++-- frontend/src/components/modals/PlantModal.tsx | 2 +- frontend/src/index.css | 6 +++--- frontend/src/main.tsx | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index bae4d03..ae2b66e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -18,7 +18,7 @@ import { Analytics } from "@vercel/analytics/react"; function App() { const [isMobile, setIsMobile] = useState(false); const [farmCoinAssetID, setFarmCoinAssetId] = useState( - FARM_COIN_ASSET_ID + FARM_COIN_ASSET_ID, ); const { isConnected } = useIsConnected(); const { wallet } = useWallet(); diff --git a/frontend/src/components/modals/HarvestModal.tsx b/frontend/src/components/modals/HarvestModal.tsx index d89af3f..47f6273 100644 --- a/frontend/src/components/modals/HarvestModal.tsx +++ b/frontend/src/components/modals/HarvestModal.tsx @@ -12,7 +12,7 @@ import type { Modals } from "../../constants"; import { useWallet } from "@fuels/react"; import { Address, Provider } from "fuels"; import { usePaymaster } from "../../hooks/usePaymaster"; -import { toast } from 'react-hot-toast' +import { toast } from "react-hot-toast"; interface HarvestProps { contract: FarmContract | null; @@ -118,7 +118,9 @@ export default function HarvestModal({ "Gas station failed, trying direct transaction...", error, ); - toast.error("Failed to harvest the seed :( Retrying with alternate method..."); + toast.error( + "Failed to harvest the seed :( Retrying with alternate method...", + ); setStatus("retrying"); await harvestWithoutGasStation(); } diff --git a/frontend/src/components/modals/PlantModal.tsx b/frontend/src/components/modals/PlantModal.tsx index 9fb7f86..4424d60 100644 --- a/frontend/src/components/modals/PlantModal.tsx +++ b/frontend/src/components/modals/PlantModal.tsx @@ -129,7 +129,7 @@ export default function PlantModal({ ); setStatus("retrying"); toast.error( - "Failed to plant the seed :( Retrying with alternate method..." + "Failed to plant the seed :( Retrying with alternate method...", ); await plantWithoutGasStation(); } diff --git a/frontend/src/index.css b/frontend/src/index.css index d6a0de0..96d4117 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,8 +1,8 @@ body { margin: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", - "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", - "Helvetica Neue", sans-serif; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", + sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background-color: #262626; diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index af2049a..7ed9e86 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -106,5 +106,5 @@ createRoot(document.getElementById("root")!).render( {" "} - + , );