Skip to content

Commit 17d8ffe

Browse files
authored
Merge pull request #87 from sanjayc208/fix/domain-update
fix: default aria , domain updated, website changes
2 parents 37da0a7 + 85ba9d0 commit 17d8ffe

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="https://react-fox-toast.vercel.app/">
1+
<a href="https://react-fox-toast.com/">
22
<p align="center">
33
<img src="./assets/fox_logo.png" align="center" alt="fox logo" width="200px">
44
<h1 align="center">✨ React Fox Toast✨</h1>
@@ -23,9 +23,9 @@
2323
<div align="center">
2424
<h3 style="font-size: 20px"><strong>
2525

26-
<a href="https://react-fox-toast.vercel.app/">🌏 Website</a>
26+
<a href="https://react-fox-toast.com/">🌏 Website</a>
2727
<span> &nbsp;|&nbsp; </span>
28-
<a href="https://react-fox-toast.vercel.app//documentation/getting-started">📚 Documentation</a>
28+
<a href="https://react-fox-toast.com//documentation/getting-started">📚 Documentation</a>
2929
<span> &nbsp;|&nbsp; </span>
3030
<a href="https://github.com/sanjayc208/react-fox-toast">🗄️ Github</a>
3131
</strong>
@@ -35,7 +35,7 @@
3535

3636
<div align="center">
3737
<p>Preview</p>
38-
<a href="https://react-fox-toast.vercel.app/"><img src="./assets/rft-preview.gif" alt="Description of GIF"></a>
38+
<a href="https://react-fox-toast.com/"><img src="./assets/rft-preview.gif" alt="Description of GIF"></a>
3939
</div>
4040

4141
# React Fox Toast - Flexible Toast Notifications for React and Next.js
@@ -103,7 +103,7 @@ function MyComponent() {
103103
```
104104

105105
## Learn More
106-
- Detailed usage and examples are available in the [Documentation](https://react-fox-toast.vercel.app/documentation/getting-started).
106+
- Detailed usage and examples are available in the [Documentation](https://react-fox-toast.com/documentation/getting-started).
107107

108108
## License
109109
MIT License

src/components/toast-container.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ const DEFAULT_SPACING = 0
2929
const DEFAULT_DIRECTION = 'ltr'
3030
const DEFAULT_IS_PAUSED_ON_HOVER = true
3131
const DEFAULT_TOAST_TYPE_THEMING = {}
32+
const DEFAULT_ARIA = undefined
3233

33-
export const ToastContainer: React.FC<ToastContainerProps> = ({ toastTypeTheming = DEFAULT_TOAST_TYPE_THEMING, spacing = DEFAULT_SPACING, position = DEFAULT_POSITION, duration = DEFAULT_DURATION, direction = DEFAULT_DIRECTION, isPausedOnHover = DEFAULT_IS_PAUSED_ON_HOVER, aria = undefined }) => {
34+
export const ToastContainer: React.FC<ToastContainerProps> = ({ toastTypeTheming = DEFAULT_TOAST_TYPE_THEMING, spacing = DEFAULT_SPACING, position = DEFAULT_POSITION, duration = DEFAULT_DURATION, direction = DEFAULT_DIRECTION, isPausedOnHover = DEFAULT_IS_PAUSED_ON_HOVER, aria = DEFAULT_ARIA }) => {
3435
// Set new default values
3536
setToastDefaults(duration, position);
3637

website/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default function Home() {
145145
onClick={() =>
146146
toast(
147147
<>
148-
Custom JSX componentCustom
148+
Welcome to React Fox Toast!
149149
</>,
150150
{
151151
position: 'top-center',

website/src/components/features/feature-list.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { cn } from "@/lib/utils";
44
import { AnimatedList } from "@/components/ui/animated-list";
5-
import { Paintbrush, Expand, Pause, Feather, User, CircleX, MailOpen } from 'lucide-react'
5+
import { Paintbrush, Expand, Pause, Feather, User, CircleX, MailOpen, Accessibility } from 'lucide-react'
66

77
interface Item {
88
name: string;
@@ -51,7 +51,7 @@ let notifications = [
5151
name: "Expandable",
5252
// description: "Magic UI",
5353
icon: <Expand />, //"🗞️",
54-
color: "#8ce3f9" //"#1E86FF",
54+
color: "#e6e600" //"#1E86FF",
5555
},
5656
{
5757
name: "Envelope",
@@ -77,6 +77,12 @@ let notifications = [
7777
icon: <CircleX />,
7878
color: "#f0f0f0" //"#1E86FF",
7979
},
80+
{
81+
name: "Accessibility",
82+
// description: "Magic UI",
83+
icon: <Accessibility />,
84+
color: "#99ccff" //"#1E86FF",
85+
},
8086
];
8187

8288
notifications = Array.from({ length: 10 }, () => notifications).flat();

0 commit comments

Comments
 (0)