mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2026-05-13 00:54:02 -05:00
remove toast (for now)
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import { Toast, useToastState } from "@tamagui/toast"
|
||||
import React from "react"
|
||||
import { YStack } from "tamagui"
|
||||
|
||||
export function CurrentToast(): React.JSX.Element {
|
||||
const currentToast = useToastState()
|
||||
|
||||
if (!currentToast || currentToast.isHandledNatively) return (<></>)
|
||||
return (
|
||||
<Toast
|
||||
key={currentToast.id}
|
||||
duration={currentToast.duration}
|
||||
enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
|
||||
exitStyle={{ opacity: 0, scale: 1, y: -20 }}
|
||||
y={0}
|
||||
opacity={1}
|
||||
scale={1}
|
||||
animation="100ms"
|
||||
viewportName={currentToast.viewportName}
|
||||
>
|
||||
<YStack>
|
||||
<Toast.Title>{currentToast.title}</Toast.Title>
|
||||
{!!currentToast.message && (
|
||||
<Toast.Description>{currentToast.message}</Toast.Description>
|
||||
)}
|
||||
</YStack>
|
||||
</Toast>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import Login from "./Login/component";
|
||||
import Navigation from "./navigation";
|
||||
import { Colors } from "react-native/Libraries/NewAppScreen";
|
||||
import { setupPlayer } from "react-native-track-player/lib/src/trackPlayer";
|
||||
import { CurrentToast } from "./helpers/toast";
|
||||
import { useCredentials } from "../api/queries/keychain";
|
||||
|
||||
export default function Jellify(): React.JSX.Element {
|
||||
@@ -29,7 +28,6 @@ export default function Jellify(): React.JSX.Element {
|
||||
backgroundColor={backgroundStyle.backgroundColor}
|
||||
/>
|
||||
{ isError ? <Navigation /> : <Login /> }
|
||||
<CurrentToast />
|
||||
</SafeAreaView>
|
||||
</NavigationContainer>
|
||||
|
||||
|
||||
Generated
-25
@@ -16,7 +16,6 @@
|
||||
"@react-navigation/native": "^6.1.18",
|
||||
"@react-navigation/stack": "^6.4.1",
|
||||
"@tamagui/config": "^1.115.2",
|
||||
"@tamagui/toast": "^1.115.2",
|
||||
"@tanstack/react-query": "^5.52.1",
|
||||
"lodash": "^4.17.21",
|
||||
"react": "18.3.1",
|
||||
@@ -6039,30 +6038,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@tamagui/timer/-/timer-1.115.2.tgz",
|
||||
"integrity": "sha512-KO4KdQDWqg+SBmb7DEJUjfIQP0otV9NYbPBrJo6YEqrcuvNzTNiyEFzg9TSJbWpmIG7l5RPD+00nrl/yZroFAA=="
|
||||
},
|
||||
"node_modules/@tamagui/toast": {
|
||||
"version": "1.115.2",
|
||||
"resolved": "https://registry.npmjs.org/@tamagui/toast/-/toast-1.115.2.tgz",
|
||||
"integrity": "sha512-9k+Yg5oI7ZjpeMZBWY/clkTCGCG2rSQh0ishwWKrPleQnbVHWDzmZwO+OHnUoxgnZ3MyrA9WZbm3GedSx/CGDA==",
|
||||
"dependencies": {
|
||||
"@tamagui/animate-presence": "1.115.2",
|
||||
"@tamagui/compose-refs": "1.115.2",
|
||||
"@tamagui/constants": "1.115.2",
|
||||
"@tamagui/core": "1.115.2",
|
||||
"@tamagui/create-context": "1.115.2",
|
||||
"@tamagui/dismissable": "1.115.2",
|
||||
"@tamagui/helpers": "1.115.2",
|
||||
"@tamagui/polyfill-dev": "1.115.2",
|
||||
"@tamagui/portal": "1.115.2",
|
||||
"@tamagui/stacks": "1.115.2",
|
||||
"@tamagui/start-transition": "1.115.2",
|
||||
"@tamagui/text": "1.115.2",
|
||||
"@tamagui/use-controllable-state": "1.115.2",
|
||||
"@tamagui/visually-hidden": "1.115.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@tamagui/toggle-group": {
|
||||
"version": "1.115.2",
|
||||
"resolved": "https://registry.npmjs.org/@tamagui/toggle-group/-/toggle-group-1.115.2.tgz",
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
"@react-navigation/native": "^6.1.18",
|
||||
"@react-navigation/stack": "^6.4.1",
|
||||
"@tamagui/config": "^1.115.2",
|
||||
"@tamagui/toast": "^1.115.2",
|
||||
"@tanstack/react-query": "^5.52.1",
|
||||
"lodash": "^4.17.21",
|
||||
"react": "18.3.1",
|
||||
|
||||
Reference in New Issue
Block a user