1
0
Fork 0

chore: Remove lint

This commit is contained in:
joostdecock 2023-10-22 18:54:32 +02:00
parent cf2e2139a3
commit 5f11da267c
2 changed files with 7 additions and 14 deletions

View file

@ -75,7 +75,7 @@ export const ShowUser = ({ user, button = null }) => (
style={{ style={{
backgroundImage: `url(${cloudflareConfig.url}uid-${user.ihash}/sq500)`, backgroundImage: `url(${cloudflareConfig.url}uid-${user.ihash}/sq500)`,
backgroundSize: 'cover', backgroundSize: 'cover',
backgroundColor: 'linear-gradient(#80FFDB, #64DFDF, #48BFE3, #5390D9, #5E60CE);', backgroundColor: '#ccc',
}} }}
></div> ></div>
<div className="w-full"> <div className="w-full">

View file

@ -13,14 +13,11 @@ const msg = () => Math.floor(Math.random() * messages)
export const Hodl = ({ delay = 1.25, step = 2, noTitle = false }) => { export const Hodl = ({ delay = 1.25, step = 2, noTitle = false }) => {
const { t } = useTranslation(['hodl']) const { t } = useTranslation(['hodl'])
const timeout = delay * 1000
const [fade, setFade] = useState('opacity-100') const [fade, setFade] = useState('opacity-100')
const [timer, setTimer] = useState(false)
const [tick, setTick] = useState(0) const [tick, setTick] = useState(0)
const [loadingStatus, setLoadingStatus] = useState([true, t('hodl:oneMoment')]) const [loadingStatus, setLoadingStatus] = useState([true, t('hodl:oneMoment')])
const [shown, setShown] = useState({}) const [shown, setShown] = useState({})
const [color, setColor] = useState('secondary')
useEffect(() => { useEffect(() => {
if (tick > 0 && tick < 10) { if (tick > 0 && tick < 10) {
@ -38,17 +35,13 @@ export const Hodl = ({ delay = 1.25, step = 2, noTitle = false }) => {
useEffect(() => { useEffect(() => {
if (loadingStatus[1]) { if (loadingStatus[1]) {
if (loadingStatus[2]) { if (loadingStatus[2]) {
setTimer( window.setTimeout(() => {
window.setTimeout(() => { setFade('opacity-0')
setFade('opacity-0') }, 2000 * delay)
}, 2000 * delay)
)
} else { } else {
setTimer( window.setTimeout(() => {
window.setTimeout(() => { setTick(tick + step)
setTick(tick + step) }, 1000 * delay)
}, 1000 * delay)
)
} }
} }
}, [loadingStatus[1]]) }, [loadingStatus[1]])