mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-24 17:22:53 +03:00
notifications: ripping out unused param
This commit is contained in:
parent
0a958532b6
commit
cbb46f0dd0
@ -1,7 +1,7 @@
|
||||
import { useMemo } from 'react';
|
||||
import { useSkeins } from '@/state/hark';
|
||||
import _ from 'lodash';
|
||||
import { Flag, Skein, Yarn } from '@/types/hark';
|
||||
import { Skein, Yarn } from '@/types/hark';
|
||||
import { makePrettyDay } from '@/logic/utils';
|
||||
|
||||
export interface DayGrouping {
|
||||
@ -31,8 +31,8 @@ export const isComment = (yarn: Yarn) =>
|
||||
export const isReply = (yarn: Yarn) =>
|
||||
yarn.con.some((con) => con === ' replied to your message “');
|
||||
|
||||
export const useNotifications = (flag?: Flag, mentionsOnly = false) => {
|
||||
const { data: skeins, status: skeinsStatus } = useSkeins(flag);
|
||||
export const useNotifications = (mentionsOnly = false) => {
|
||||
const { data: skeins, status: skeinsStatus } = useSkeins();
|
||||
|
||||
return useMemo(() => {
|
||||
if (skeinsStatus !== 'success') {
|
||||
|
Loading…
Reference in New Issue
Block a user