Skip to content

Commit

Permalink
NEOS-530: updated toast remove delay to 10 seconds (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Dec 20, 2023
1 parent 41d7891 commit f99ed06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions frontend/apps/web/components/MainNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export function MainNav({
href={`/${account?.name}/jobs`}
className={cn(
'text-sm font-medium text-muted-foreground transition-colors hover:text-black dark:hover:text-white',
highlightPathName('/jobs')
? 'text-foreground'
: 'text-foreground/60'
highlightPathName('/job') ? 'text-foreground' : 'text-foreground/60'
)}
>
Jobs
Expand Down
4 changes: 2 additions & 2 deletions frontend/apps/web/components/ui/use-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from 'react';
import type { ToastActionElement, ToastProps } from '@/components/ui/toast';

const TOAST_LIMIT = 1;
const TOAST_REMOVE_DELAY = 1000000;
const TOAST_REMOVE_DELAY = 10000;

type ToasterToast = ToastProps & {
id: string;
Expand Down Expand Up @@ -186,4 +186,4 @@ function useToast() {
};
}

export { useToast, toast };
export { toast, useToast };
4 changes: 2 additions & 2 deletions frontend/apps/web/yup-validations/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export const SCHEMA_FORM_SCHEMA = Yup.object({
});

export const SOURCE_FORM_SCHEMA = Yup.object({
sourceId: Yup.string().uuid('source is required').required(),
sourceId: Yup.string().uuid('Source is required').required(),
sourceOptions: Yup.object({
haltOnNewColumnAddition: Yup.boolean().optional(),
}),
});

export const DESTINATION_FORM_SCHEMA = Yup.object({
connectionId: Yup.string()
.uuid('destination is required')
.uuid('Destination is required')
.required()
.test(
'checkConnectionUnique',
Expand Down

0 comments on commit f99ed06

Please sign in to comment.