Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
molvqingtai committed Nov 7, 2024
2 parents 47d863b + d325be4 commit adc93b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions src/app/content/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Setup from '@/app/content/views/Setup'
import MessageListDomain from '@/domain/MessageList'
import { useEffect, useRef } from 'react'
import { Toaster } from 'sonner'
import { AnimatePresence, motion } from 'framer-motion'

import DanmakuContainer from './components/DanmakuContainer'
import DanmakuDomain from '@/domain/Danmaku'
Expand Down Expand Up @@ -69,18 +68,7 @@ export default function App() {
<Header />
<Main />
<Footer />
<AnimatePresence>
{notUserInfo && (
<motion.div
className="contents"
initial={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.3 }}
>
<Setup></Setup>
</motion.div>
)}
</AnimatePresence>
{notUserInfo && <Setup></Setup>}
<Toaster richColors offset="70px" visibleToasts={1} position="top-center"></Toaster>
</AppMain>
<AppButton></AppButton>
Expand Down
2 changes: 1 addition & 1 deletion src/app/content/views/Setup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ const Setup: FC = () => {
const [userInfo, setUserInfo] = useState<UserInfo>()

const handleSetup = () => {
send(userInfoDomain.command.UpdateUserInfoCommand(userInfo!))
send(messageListDomain.command.ClearListCommand())
send(userInfoDomain.command.UpdateUserInfoCommand(userInfo!))
}

const refreshUserInfo = async () => {
Expand Down

0 comments on commit adc93b8

Please sign in to comment.