Skip to content

Commit

Permalink
toast update in layout, post action icon
Browse files Browse the repository at this point in the history
  • Loading branch information
frankduandou committed Jun 18, 2024
1 parent 8282677 commit dc05ec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/(root)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SpeedInsights } from "@vercel/speed-insights/next"
import { NextUIProvider } from '@nextui-org/react';
import { ThemeProvider as NextThemesProvider } from "next-themes";
import Frame from '@mitech/shared-components/component/frame-with-sidebar-and-navbar';
import { NotificationProvider } from '@/components/ui/NotificationContext';
export const metadata = {
title: 'Welcome to Mitech Recruitment',
description:
Expand All @@ -26,7 +27,7 @@ export default async function RootLayout({
<NextThemesProvider attribute="class" defaultTheme='light'>
<main className="text-foreground bg-background">
<Frame>
{children}
<NotificationProvider>{children}</NotificationProvider>
</Frame>
</main>
<Analytics />
Expand Down
4 changes: 2 additions & 2 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React from 'react';
import Link from 'next/link';
import { PlusIcon, PencilIcon, StopIcon, ArrowUpOnSquareIcon, EyeIcon, TrashIcon } from '@heroicons/react/24/outline';
import { PlusIcon, PencilIcon, StopIcon, EyeIcon, TrashIcon, ArrowUpOnSquareStackIcon } from '@heroicons/react/24/outline';
import {Tooltip, Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Button, useDisclosure} from "@nextui-org/react";
import { redirect, useRouter } from 'next/navigation';
import { deleteAd, publishAd, unpublishAd } from '@/lib/api';
Expand Down Expand Up @@ -110,7 +110,7 @@ export function PostAd({ id }: { id: string }) {
<Tooltip content={"Post"} offset={-4}>
<Button className="rounded-md border p-2 hover:bg-gray-100 min-w-0" onPress={onOpen}>
<span className="sr-only">Post</span>
<ArrowUpOnSquareIcon className="w-4" />
<ArrowUpOnSquareStackIcon className="w-4" />
</Button>
</Tooltip>
<Modal isOpen={isOpen} onOpenChange={onOpenChange} placement='top' classNames={{base:"bg-white"}}>
Expand Down

0 comments on commit dc05ec4

Please sign in to comment.