File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
in-page/Friend/FriendSection Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import styles from './index.module.css'
1111export type FriendSectionProps = {
1212 data : LinkModel [ ]
1313}
14+
1415export const FavoriteSection : FC < FriendSectionProps > = ( { data } ) => {
1516 return (
1617 < ul >
Original file line number Diff line number Diff line change 1+ import clsx from 'clsx'
12import type { FC } from 'react'
23import { memo , useRef } from 'react'
34import { toast } from 'react-toastify'
@@ -30,7 +31,7 @@ export const ToastCard: FC<{
3031 >
3132 < div
3233 onClick = { ( e ) => props . onClick ?.( e . nativeEvent ) }
33- className = "bg-bg-opacity border-shallow relative mb-4 ml-auto mr-4 box-border flex w-full
34+ className = "bg-bg-opacity border-shallow group relative mb-4 ml-auto mr-4 box-border flex w-full
3435 cursor-pointer select-none items-center space-x-4
3536 overflow-hidden rounded-xl border border-opacity-50 p-4 text-[12px]
3637 text-inherit backdrop-blur-md backdrop-brightness-110 backdrop-brightness-150 backdrop-saturate-150 backdrop-filter"
@@ -41,7 +42,11 @@ export const ToastCard: FC<{
4142 < div
4243 role = "button"
4344 tabIndex = { 0 }
44- className = "bg-gray-6 dark:bg-dark-100 text-dark-50 absolute left-2 top-2 z-10 flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-opacity-80 dark:text-white"
45+ className = { clsx (
46+ 'bg-gray-6 dark:bg-dark-100 text-dark-50 absolute left-2 top-2 z-10 flex h-6 w-6 items-center justify-center' ,
47+ 'overflow-hidden rounded-full bg-opacity-80 dark:text-white' ,
48+ 'opacity-0 transition-opacity group-hover:opacity-100' ,
49+ ) }
4550 onClick = { ( e ) => {
4651 e . stopPropagation ( )
4752 props . getToastId && toast . dismiss ( props . getToastId ( ) )
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { useUserStore } from '~/atoms/user'
2626import { useCheckLogged } from '~/hooks/app/use-check-logged'
2727import { useCheckOldBrowser } from '~/hooks/app/use-check-old-browser'
2828import { useInitialData } from '~/hooks/app/use-initial-data'
29+ import { ToastContainer } from '~/provider/toastify'
2930import { printToConsole } from '~/utils/console'
3031
3132interface DataModel {
@@ -81,6 +82,7 @@ const App: FC<DataModel & { Component: any; pageProps: any; err: any }> = (
8182 return initData . aggregateData ? (
8283 < ProviderComposer contexts = { PageProviders } >
8384 < Component { ...pageProps } />
85+ < ToastContainer key = "ToastContainer" />
8486 </ ProviderComposer >
8587 ) : (
8688 < NoDataErrorView />
You can’t perform that action at this time.
0 commit comments