Skip to content

Commit

Permalink
Merge branches 'main' and 'main' of github.com:Protofy-xyz/Protofy
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0k4 committed Jul 5, 2024
2 parents e4dd62f + b1dba32 commit c73c170
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
13 changes: 11 additions & 2 deletions packages/app/features/auth/login.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import { FormEvent, useEffect, useRef, useState } from 'react'
import { Button, Input, Paragraph, Spinner, Stack, YStack } from 'tamagui'
import { useSession, useSessionContext, createSession, Auth, Center, HorizontalBox, Notice, Section, SpotLight, ElevatedArea, BackgroundGradient, LogoIcon, PendingResult, getPendingResult, Page} from 'protolib'
import { LogoIcon, PendingResult, getPendingResult, Page} from 'protolib'
import { getEnv } from 'protolib/base'
import { DefaultLayout } from '../../layout/DefaultLayout'
import Link from 'next/link'
import { ProtofyLogoSVG } from '@my/ui'
import { useSearchParams, useRouter } from 'solito/navigation';
import { getErrorMessage } from "@my/ui";
import { SiteConfig } from '../../conf'

import { useSession, useSessionContext } from 'protolib/lib/Session'
import { createSession } from 'protolib/api/lib/session'
import { Auth } from 'protolib/lib/Auth'
import { Center } from 'protolib/components/Center'
import { HorizontalBox } from 'protolib/components/HorizontalBox'
import { Notice } from 'protolib/components/Notice'
import { Section } from 'protolib/components/Section'
import { SpotLight } from 'protolib/components/SpotLight'
import { ElevatedArea } from 'protolib/components/ElevatedArea'
import { BackgroundGradient } from 'protolib/components/BackgroundGradient'

export function SignInPage(props) {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/BackgroundGradient.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { YStack } from "tamagui"
import React from 'react'

const BackgroundGradient = React.forwardRef(({height=521, o=0.08, direction="up", ...props}:any, ref: any) => (
export const BackgroundGradient = React.forwardRef(({height=521, o=0.08, direction="up", ...props}:any, ref: any) => (
<YStack
ref={ref}
className={"bg-grid mask-gradient-"+direction}
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/Center.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StackProps, YStack } from "tamagui"
import React from 'react'

const Center = React.forwardRef(({children, ...props}: StackProps, ref:any) => (
export const Center = React.forwardRef(({children, ...props}: StackProps, ref:any) => (
<YStack flex={1} alignItems="center" justifyContent="center" ref={ref} {...props}>
{children}
</YStack>
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/ElevatedArea.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StackProps, YStack } from "tamagui";
import React from "react"

const ElevatedArea = React.forwardRef((props:StackProps, ref:any) => (
export const ElevatedArea = React.forwardRef((props:StackProps, ref:any) => (
<YStack
ref={ref}
//@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/HorizontalBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import { ContainerLarge } from "./Container"
import { StackProps, XStack, XStackProps } from "tamagui"

const HorizontalBox = React.forwardRef((props:StackProps, ref:any) => (
export const HorizontalBox = React.forwardRef((props:StackProps, ref:any) => (
<ContainerLarge ref={ref}>
<XStack
flex={1}
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StackProps, YStack } from "tamagui"
import { Theme } from "tamagui"
import {Tinted} from './Tinted'

const Section = React.forwardRef((props: StackProps, ref: any) => (
export const Section = React.forwardRef((props: StackProps, ref: any) => (
<YStack ref={ref} flex={1} {...props}>
<Tinted>{props.children}</Tinted>
</YStack>
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/components/SpotLight.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import { YStack } from "tamagui"

const SpotLight = React.forwardRef((props: any, ref: any) => (
export const SpotLight = React.forwardRef((props: any, ref: any) => (
<YStack
ref={ref}
o={0.75}
Expand Down

0 comments on commit c73c170

Please sign in to comment.