Skip to content

Commit cf64f62

Browse files
responsive
1 parent 62c5aa5 commit cf64f62

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

carbontrack/src/app/components/EditProfile/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ export default function EditProfilePage() {
139139
setIsSubmitting(false);
140140
}
141141
};
142-
142+
if (loading) return <div className="mt-32 text-center text-white">Loading...</div>;
143143
if (error) return <div className="mt-32 text-center text-red-500">{error}</div>;
144144
if (!profile) return null;
145-
if (loading) return <div className="mt-32 text-center text-white">Loading...</div>;
145+
146146

147147
return (
148148
<main className="min-h-screen bg-gradient-to-br from-gray-900 to-black text-white p-20">

carbontrack/src/app/components/SharedProfile/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import Image from "next/image";
99
export default function ProfileDisplay() {
1010
const router = useRouter();
1111
const { user: profile, error, loading } = useFetchUsers();
12-
13-
if (error) return <div className="mt-32 text-center text-red-500">{error}</div>;
14-
if (!profile) return null;
12+
1513
if (loading) return <div className="mt-32 text-center text-white">Loading...</div>;
14+
if (error) return <div className="mt-32 text-center text-red-500">{error}</div>;
15+
if (!profile) return null;
16+
1617

1718
const getProfileRoute = () => {
1819
return profile.user_type === "factory" ? "/edit-factory-profile" : "/ktda-edit-profile";

carbontrack/src/app/login/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ export default function LoginPage() {
3131
initial={{ opacity: 0, scale: 0.9 }}
3232
animate={{ opacity: 1, scale: 1 }}
3333
transition={{ duration: 1, ease: [0.22, 1, 0.36, 1] }}
34-
className="mb-6"
35-
>
34+
className="mb-6">
3635
<Image
3736
src="/images/logo.png"
3837
alt="carbon-track logo"

0 commit comments

Comments
 (0)