-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d7cd5b
commit 6ab1297
Showing
30 changed files
with
549 additions
and
10,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ func CheckInvestorExists(pool *pgxpool.Pool, investorID string) (bool, error) { | |
return true, nil | ||
} | ||
|
||
func CreateInvestor(pool *pgxpool.Pool, supabaseID string) error { | ||
func CreateInvestor(pool *pgxpool.Pool, supabaseID string, profile models.InvestorProfile) error { | ||
query := ` | ||
INSERT INTO investors ( | ||
supabase_id, | ||
|
@@ -49,16 +49,16 @@ func CreateInvestor(pool *pgxpool.Pool, supabaseID string) error { | |
context.Background(), | ||
query, | ||
supabaseID, | ||
"John", | ||
"Doe", | ||
"[email protected]", | ||
"000-000-0000", | ||
"000-00-0000", | ||
"123", | ||
"Main St", | ||
"Anytown", | ||
"MA", | ||
"12345", | ||
profile.FirstName, | ||
profile.LastName, | ||
profile.Email, | ||
profile.PhoneNumber, | ||
profile.SSN, | ||
profile.Premise, | ||
profile.Street, | ||
profile.Locality, | ||
profile.State, | ||
profile.Zipcode, | ||
) | ||
if err != nil { | ||
return fmt.Errorf("failed to insert investor: %w", err) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import React from 'react'; | ||
import { View, ViewProps } from 'react-native'; | ||
import { styled } from 'nativewind'; | ||
import { cva, type VariantProps } from 'class-variance-authority'; | ||
|
||
const StyledView = styled(View); | ||
|
||
const cardVariants = cva('bg-white rounded-[16px] border border-border p-4', { | ||
variants: {}, | ||
defaultVariants: {}, | ||
}); | ||
|
||
interface CardProps extends ViewProps, VariantProps<typeof cardVariants> { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Card({ children, className, ...props }: CardProps & { className?: string }) { | ||
return ( | ||
<StyledView className={`${cardVariants()} ${className || ''}`} {...props}> | ||
{children} | ||
</StyledView> | ||
); | ||
} | ||
|
||
export default Card; | ||
import React from 'react'; | ||
import { View, ViewProps } from 'react-native'; | ||
import { styled } from 'nativewind'; | ||
import { cva, type VariantProps } from 'class-variance-authority'; | ||
|
||
const StyledView = styled(View); | ||
|
||
const cardVariants = cva('bg-white rounded-[16px] border border-[#DDDDDD] p-4', { | ||
variants: {}, | ||
defaultVariants: {}, | ||
}); | ||
|
||
interface CardProps extends ViewProps, VariantProps<typeof cardVariants> { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Card({ children, className, ...props }: CardProps & { className?: string }) { | ||
return ( | ||
<StyledView className={`${cardVariants()} ${className || ''}`} {...props}> | ||
{children} | ||
</StyledView> | ||
); | ||
} | ||
|
||
export default Card; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const API_URL = 'https://e966-155-33-133-58.ngrok-free.app'; | ||
export const SUPABASE_URL = 'https://c462-155-33-133-58.ngrok-free.app'; | ||
export const SUPABASE_JWT_SECRET = | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0'; | ||
export const API_URL = "https://6ed0-155-33-133-6.ngrok-free.app"; | ||
export const SUPABASE_URL = "https://0427-155-33-133-6.ngrok-free.app"; | ||
export const SUPABASE_JWT_SECRET = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.