kaori 4 лет назад
Родитель
Сommit
3609518908

+ 0 - 1
packages/app/src/components/InAppNotification/AllInAppNotifications.tsx

@@ -10,7 +10,6 @@ const AllInAppNotifications: FC = () => {
   const [activePage, setActivePage] = useState(1);
   const { data: inAppNotificationData } = useSWRxInAppNotifications(limit, activePage);
 
-
   if (inAppNotificationData == null) {
     return (
       <div className="wiki">

+ 0 - 1
packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

@@ -69,7 +69,6 @@ const InAppNotificationDropdown: FC<Props> = (props: Props) => {
 
   const badge = count > 0 ? <span className="badge badge-pill badge-danger grw-notification-badge">{count}</span> : '';
 
-
   return (
     <Dropdown className="notification-wrapper" isOpen={isOpen} toggle={toggleDropdownHandler}>
       <DropdownToggle tag="a">

+ 1 - 1
packages/app/src/stores/in-app-notification.ts

@@ -8,7 +8,7 @@ import { IInAppNotification } from '../interfaces/in-app-notification';
 // eslint-disable-next-line @typescript-eslint/no-unused-vars
 export const useSWRxInAppNotifications = <Data, Error>(
   limit: number,
-  page: number,
+  page?: number,
 ): SWRResponse<PaginateResult<IInAppNotification>, Error> => {
   return useSWR(
     `/in-app-notification/list?limit=${limit}&page=${page}`,