Skip to content

Commit e49b1da

Browse files
committed
fix more imports
1 parent db26879 commit e49b1da

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { type DailyStats } from "wasp/entities";
1+
import { type DailyStats } from 'wasp/entities';
22

3-
export type DailyStatsProps = { dailyStats?: DailyStats; weeklyStats?:DailyStats[], isLoading?: boolean }
3+
export type DailyStatsProps = { dailyStats?: DailyStats; weeklyStats?: DailyStats[]; isLoading?: boolean };

app/src/client/admin/components/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { type User } from 'wasp/entities';
1+
import { type AuthUser } from 'wasp/auth/types';
22
import DarkModeSwitcher from './DarkModeSwitcher';
33
import MessageButton from './MessageButton';
44
import DropdownUser from '../../components/DropdownUser';
55

66
const Header = (props: {
77
sidebarOpen: string | boolean | undefined;
88
setSidebarOpen: (arg0: boolean) => void;
9-
user?: Partial<User>;
9+
user?: AuthUser | null;
1010
}) => {
1111
return (
1212
<header className='sticky top-0 z-999 flex w-full bg-white dark:bg-boxdark dark:drop-shadow-none'>

app/src/client/admin/layout/DefaultLayout.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useAuth } from "wasp/client/auth";
1+
import { useAuth } from 'wasp/client/auth';
22
import { useState, ReactNode, FC } from 'react';
33
import Header from '../components/Header';
44
import Sidebar from '../components/Sidebar';
@@ -12,24 +12,22 @@ const DefaultLayout: FC<Props> = ({ children }) => {
1212
const { data: user } = useAuth();
1313

1414
return (
15-
<div className="dark:bg-boxdark-2 dark:text-bodydark">
15+
<div className='dark:bg-boxdark-2 dark:text-bodydark'>
1616
{/* <!-- ===== Page Wrapper Start ===== --> */}
17-
<div className="flex h-screen overflow-hidden">
17+
<div className='flex h-screen overflow-hidden'>
1818
{/* <!-- ===== Sidebar Start ===== --> */}
1919
<Sidebar sidebarOpen={sidebarOpen} setSidebarOpen={setSidebarOpen} />
2020
{/* <!-- ===== Sidebar End ===== --> */}
2121

2222
{/* <!-- ===== Content Area Start ===== --> */}
23-
<div className="relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden">
23+
<div className='relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden'>
2424
{/* <!-- ===== Header Start ===== --> */}
2525
<Header sidebarOpen={sidebarOpen} setSidebarOpen={setSidebarOpen} user={user} />
2626
{/* <!-- ===== Header End ===== --> */}
2727

2828
{/* <!-- ===== Main Content Start ===== --> */}
2929
<main>
30-
<div className="mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10">
31-
{children}
32-
</div>
30+
<div className='mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10'>{children}</div>
3331
</main>
3432
{/* <!-- ===== Main Content End ===== --> */}
3533
</div>

app/src/client/app/CheckoutPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export default function CheckoutPage() {
3939
{paymentStatus === 'paid'
4040
? '🥳 Payment Successful!'
4141
: paymentStatus === 'canceled'
42-
? '😢 Payment Canceled'
43-
: paymentStatus === 'error' && '🙄 Payment Error'}
42+
? '😢 Payment Canceled'
43+
: paymentStatus === 'error' && '🙄 Payment Error'}
4444
</h1>
4545
{paymentStatus !== 'loading' && (
4646
<span className='text-center'>

app/src/client/auth/EmailVerification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// import { VerifyEmailForm } from "wasp/client/auth";
1+
// import { VerifyEmailForm } from 'wasp/client/auth';
22
// import { Link } from 'react-router-dom';
33
// import { AuthWrapper } from './authWrapper';
44

app/src/client/auth/PasswordReset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// import { ResetPasswordForm } from "wasp/client/auth";
1+
// import { ResetPasswordForm } from 'wasp/client/auth';
22
// import { Link } from 'react-router-dom';
33
// import { AuthWrapper } from './authWrapper';
44

app/src/client/auth/RequestPasswordReset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// import { ForgotPasswordForm } from "wasp/client/auth";
1+
// import { ForgotPasswordForm } from 'wasp/client/auth';
22
// import { AuthWrapper } from './authWrapper';
33

44
// export function RequestPasswordReset() {

0 commit comments

Comments
 (0)