fix: use prod api
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
d6609a744f
commit
a9c91faaf3
6 changed files with 6 additions and 6 deletions
|
|
@ -36,7 +36,7 @@ export default function BankAccounts({ bankDetails }) {
|
|||
bankAccounts.push(
|
||||
<BankAccount
|
||||
key={bank.bank.name}
|
||||
bankLogoSrc={`http://localhost:8000/media/${bank.bank.logo}`}
|
||||
bankLogoSrc={`https://api.foldbank.codingcoffee.me/media/${bank.bank.logo}`}
|
||||
bankName={bank.bank.name}
|
||||
bankFullName={bank.bank.name}
|
||||
bankAccountBalance={bank.balance.toLocaleString('en-IN')}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import styles from './centerCol.module.css'
|
|||
|
||||
export default function CenterLoading() {
|
||||
const fetcher = (...args) => fetch(...args).then((res) => res.json())
|
||||
const { data, error } = useSWR(`http://localhost:8000/api/v1/accounts/`, fetcher)
|
||||
const { data, error } = useSWR(`https://api.foldbank.codingcoffee.me/api/v1/accounts/`, fetcher)
|
||||
|
||||
if (error) return <div>Error: Failed to load</div>
|
||||
if (!data) return <div></div>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export default function Dashboard({ bankDetails }) {
|
|||
total_balance += bank.balance
|
||||
banks.push(
|
||||
<Bank
|
||||
bankLogoSrc={`http://localhost:8000/media/${bank.bank.logo}`}
|
||||
bankLogoSrc={`https://api.foldbank.codingcoffee.me/media/${bank.bank.logo}`}
|
||||
bankName={bank.bank.name}
|
||||
bankBalance={bank.balance.toLocaleString('en-IN')}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import SingleTransaction from './SingleTransaction'
|
|||
|
||||
export default function RecentTransactionsList() {
|
||||
const fetcher = (...args) => fetch(...args).then((res) => res.json())
|
||||
const { data, error } = useSWR(`http://localhost:8000/api/v1/transactions/`, fetcher)
|
||||
const { data, error } = useSWR(`https://api.foldbank.codingcoffee.me/api/v1/transactions/`, fetcher)
|
||||
|
||||
if (error) return <div>Error: Failed to load</div>
|
||||
if (!data) return <div></div>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import RecurringPayment from './RecurringPayment'
|
|||
|
||||
export default function Upcoming() {
|
||||
const fetcher = (...args) => fetch(...args).then((res) => res.json())
|
||||
const { data, error } = useSWR(`http://localhost:8000/api/v1/recurringPayments/upcoming/`, fetcher)
|
||||
const { data, error } = useSWR(`https://api.foldbank.codingcoffee.me/api/v1/recurringPayments/upcoming/`, fetcher)
|
||||
|
||||
if (error) return <div>Error: Failed to load</div>
|
||||
if (!data) return <div></div>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const nextConfig = {
|
|||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'foldbank.codingcoffee.me',
|
||||
hostname: 'api.foldbank.codingcoffee.me',
|
||||
port: '',
|
||||
pathname: '/**',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue