feat(messages): add animations (#31)
This commit is contained in:
@ -1,12 +1,15 @@
|
||||
import { createContext, useContext, useEffect, useMemo } from 'react'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
import { NextPage, usePagination } from '../hooks/usePagination'
|
||||
import type { NextPage } from '../hooks/usePagination'
|
||||
import { usePagination } from '../hooks/usePagination'
|
||||
import { useAuthentication } from '../tools/authentication'
|
||||
import { Channel, ChannelWithDefaultChannelId } from '../models/Channel'
|
||||
import { GuildsChannelsPath } from '../components/Application'
|
||||
import { handleSocketData, SocketData } from '../tools/handleSocketData'
|
||||
import { CacheKey, CHANNELS_CACHE_KEY } from '../tools/cache'
|
||||
import type { Channel, ChannelWithDefaultChannelId } from '../models/Channel'
|
||||
import type { GuildsChannelsPath } from '../components/Application'
|
||||
import type { SocketData } from '../tools/handleSocketData'
|
||||
import { handleSocketData } from '../tools/handleSocketData'
|
||||
import type { CacheKey } from '../tools/cache'
|
||||
import { CHANNELS_CACHE_KEY } from '../tools/cache'
|
||||
|
||||
export interface Channels {
|
||||
channels: Channel[]
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { createContext, useContext, useEffect, useState } from 'react'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
import { GuildWithDefaultChannelId } from '../models/Guild'
|
||||
import { Member } from '../models/Member'
|
||||
import type { GuildWithDefaultChannelId } from '../models/Guild'
|
||||
import type { Member } from '../models/Member'
|
||||
import { useAuthentication } from '../tools/authentication'
|
||||
import { SocketData } from '../tools/handleSocketData'
|
||||
import type { SocketData } from '../tools/handleSocketData'
|
||||
|
||||
export interface GuildMember {
|
||||
guild: GuildWithDefaultChannelId
|
||||
|
@ -1,9 +1,11 @@
|
||||
import { createContext, useContext, useEffect } from 'react'
|
||||
|
||||
import { NextPage, usePagination } from '../hooks/usePagination'
|
||||
import type { NextPage } from '../hooks/usePagination'
|
||||
import { usePagination } from '../hooks/usePagination'
|
||||
import { useAuthentication } from '../tools/authentication'
|
||||
import { GuildWithDefaultChannelId } from '../models/Guild'
|
||||
import { handleSocketData, SocketData } from '../tools/handleSocketData'
|
||||
import type { GuildWithDefaultChannelId } from '../models/Guild'
|
||||
import type { SocketData } from '../tools/handleSocketData'
|
||||
import { handleSocketData } from '../tools/handleSocketData'
|
||||
import { GUILDS_CACHE_KEY } from '../tools/cache'
|
||||
|
||||
export interface Guilds {
|
||||
|
@ -1,12 +1,15 @@
|
||||
import { createContext, useContext, useEffect, useMemo } from 'react'
|
||||
|
||||
import { NextPage, usePagination } from '../hooks/usePagination'
|
||||
import type { NextPage } from '../hooks/usePagination'
|
||||
import { usePagination } from '../hooks/usePagination'
|
||||
import { useAuthentication } from '../tools/authentication'
|
||||
import { MemberWithPublicUser } from '../models/Member'
|
||||
import { GuildsChannelsPath } from '../components/Application'
|
||||
import { handleSocketData, SocketData } from '../tools/handleSocketData'
|
||||
import { User } from '../models/User'
|
||||
import { CacheKey, MEMBERS_CACHE_KEY } from '../tools/cache'
|
||||
import type { MemberWithPublicUser } from '../models/Member'
|
||||
import type { GuildsChannelsPath } from '../components/Application'
|
||||
import type { SocketData } from '../tools/handleSocketData'
|
||||
import { handleSocketData } from '../tools/handleSocketData'
|
||||
import type { User } from '../models/User'
|
||||
import type { CacheKey } from '../tools/cache'
|
||||
import { MEMBERS_CACHE_KEY } from '../tools/cache'
|
||||
|
||||
export interface Members {
|
||||
members: MemberWithPublicUser[]
|
||||
|
@ -1,11 +1,14 @@
|
||||
import { createContext, useContext, useEffect, useMemo } from 'react'
|
||||
|
||||
import { NextPage, usePagination } from '../hooks/usePagination'
|
||||
import type { NextPage } from '../hooks/usePagination'
|
||||
import { usePagination } from '../hooks/usePagination'
|
||||
import { useAuthentication } from '../tools/authentication'
|
||||
import { MessageWithMember } from '../models/Message'
|
||||
import { GuildsChannelsPath } from '../components/Application'
|
||||
import { handleSocketData, SocketData } from '../tools/handleSocketData'
|
||||
import { CacheKey, MESSAGES_CACHE_KEY } from '../tools/cache'
|
||||
import type { MessageWithMember } from '../models/Message'
|
||||
import type { GuildsChannelsPath } from '../components/Application'
|
||||
import type { SocketData } from '../tools/handleSocketData'
|
||||
import { handleSocketData } from '../tools/handleSocketData'
|
||||
import type { CacheKey } from '../tools/cache'
|
||||
import { MESSAGES_CACHE_KEY } from '../tools/cache'
|
||||
|
||||
export interface Messages {
|
||||
messages: MessageWithMember[]
|
||||
|
Reference in New Issue
Block a user