Skip to content

Commit

Permalink
Remove hero updates
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Nov 5, 2023
1 parent 667d184 commit 45154bc
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions website/src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,6 @@ import { toast } from 'sonner';
import styles from './hero.module.css';
import Link from 'next/link';

export const headlessToast = (message: string) => {
toast.custom(
(t) => (
<div>
{message}
<button onClick={() => toast.dismiss(t)}>x</button>
</div>
),
{
// dismissible: true
// onDismiss: (t) => toast.dismiss(t.id)
},
);
};

export const Hero = () => {
return (
<div className={styles.wrapper}>
Expand All @@ -32,7 +17,6 @@ export const Hero = () => {
<button
data-primary=""
onClick={() => {
headlessToast('headless toast');
toast('Sonner', {
description: 'An opinionated toast component for React.',
});
Expand All @@ -41,7 +25,6 @@ export const Hero = () => {
>
Render a toast
</button>
<button onClick={() => toast.dismiss()}>dismiss all</button>
<a className={styles.button} href="https://github.com/emilkowalski/sonner" target="_blank">
GitHub
</a>
Expand Down

0 comments on commit 45154bc

Please sign in to comment.