import React from "react" import * as antd from "antd" import config from "config" import { Icons } from "components/Icons" import { Footer } from "components" import "./index.less" export default (props) => { const [wallpaperData, setWallpaperData] = React.useState(null) const setRandomWallpaper = async () => { const featuredWallpapers = await app.api.request("main", "get", "featuredWallpapers").catch((err) => { console.error(err) return [] }) // get random wallpaper from array const randomWallpaper = featuredWallpapers[Math.floor(Math.random() * featuredWallpapers.length)] setWallpaperData(randomWallpaper) } const onClickRegister = () => { app.eventBus.emit("app.createRegister") } const onClickLogin = () => { app.eventBus.emit("app.createLogin") } React.useEffect(() => { setRandomWallpaper() }, []) return
{wallpaperData?.author ? wallpaperData.author : null}
Registering a new account accepts the Terms and Conditions and Privacy policy for the services provided by {config.author}