mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: updates
This commit is contained in:
parent
f340a90117
commit
cec4c5909d
50 changed files with 1304 additions and 207 deletions
|
|
@ -3,7 +3,7 @@ import { getCoverColor } from '../utils/common'
|
|||
import { useState, useEffect } from 'react'
|
||||
|
||||
export default function useCoverColor(url: string) {
|
||||
const [color, setColor] = useState({ from: '#fff', to: '#fff' })
|
||||
const [color, setColor] = useState({ from: '#000', to: '#000' })
|
||||
|
||||
useEffect(() => {
|
||||
getCoverColor(url || '').then(color => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue