Skip to content

Commit 6d72f28

Browse files
authored
Code formatting improvements and cleanup
✨ Updates: - Fixed formatting in Auth.tsx (spacing, indentation) - Added missing semicolons in supabaseClient.ts - Improved code consistency across auth components 🧹 Code Quality: Enhanced readability and maintainability
1 parent fb367f6 commit 6d72f28

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

components/auth/Auth.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ const Auth: React.FC = () => {
7575
{loading ? 'Loading...' : isSignUp ? 'Sign Up' : 'Sign In'}
7676
</button>
7777
</form>
78-
78+
7979
{message && <p className="message">{message}</p>}
80-
80+
8181
<div className="demo-section">
82-
<button
82+
<button
8383
type="button"
8484
className="demo-button"
8585
onClick={async () => {
@@ -110,11 +110,11 @@ const Auth: React.FC = () => {
110110
</button>
111111
<p className="demo-note">Experience FlairAi with our demo account</p>
112112
</div>
113-
113+
114114
<p>
115115
{isSignUp ? 'Already have an account?' : "Don't have an account?"}{' '}
116-
<button
117-
type="button"
116+
<button
117+
type="button"
118118
className="link-button"
119119
onClick={() => setIsSignUp(!isSignUp)}
120120
>

src-business/lib/supabaseClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

2-
import { createClient } from '@supabase/supabase-js'
2+
import { createClient } from '@supabase/supabase-js';
33

44
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
55
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
66

7-
console.log('Supabase config:', {
8-
url: supabaseUrl ? 'Configured' : 'Missing',
9-
key: supabaseAnonKey ? 'Configured' : 'Missing'
7+
console.log('Supabase config:', {
8+
url: supabaseUrl ? 'Configured' : 'Missing',
9+
key: supabaseAnonKey ? 'Configured' : 'Missing'
1010
});
1111

1212
if (!supabaseUrl || !supabaseAnonKey) {

0 commit comments

Comments
 (0)