Add link on snack bar (#9873)
Add link to workflow execution <img width="639" alt="Capture d’écran 2025-01-27 à 18 15 34" src="https://github.com/user-attachments/assets/f2a1b3b5-7bf6-4b33-bba7-bf8907f6bcc6" />
This commit is contained in:
@ -46,7 +46,15 @@ export const SnackBarProvider = ({ children }: React.PropsWithChildren) => {
|
||||
<StyledSnackBarContainer>
|
||||
<AnimatePresence>
|
||||
{snackBarInternal.queue.map(
|
||||
({ duration, icon, id, message, detailedMessage, variant }) => (
|
||||
({
|
||||
duration,
|
||||
icon,
|
||||
id,
|
||||
message,
|
||||
detailedMessage,
|
||||
variant,
|
||||
link,
|
||||
}) => (
|
||||
<motion.div
|
||||
key={id}
|
||||
variants={variants}
|
||||
@ -57,7 +65,14 @@ export const SnackBarProvider = ({ children }: React.PropsWithChildren) => {
|
||||
layout
|
||||
>
|
||||
<SnackBar
|
||||
{...{ duration, icon, message, detailedMessage, variant }}
|
||||
{...{
|
||||
duration,
|
||||
icon,
|
||||
message,
|
||||
detailedMessage,
|
||||
variant,
|
||||
link,
|
||||
}}
|
||||
onClose={() => handleSnackBarClose(id)}
|
||||
/>
|
||||
</motion.div>
|
||||
|
||||
Reference in New Issue
Block a user