Skip to content

Commit

Permalink
chore: fetch avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChipsAhoy committed Oct 12, 2024
1 parent 658f3c2 commit 9996844
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/HeaderView.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ const StyledI = ({handle_click}) => {

const HeaderView = ({ props: [EffThis] }) => {
const [clicks, set_clicks] = useState(1);
const [avatar_url, set_avatar_url] = useState('/assets/images/banner_image.webp');
const [avatar_url, set_avatar_url] = useState(
"https://api.suij1sui.space/api/v2/avatar"
);
const [is_theme_selection_open, set_is_theme_selection_open] = useState(false);
useEffect(() => {
if (clicks > 5) {
Expand Down
6 changes: 6 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ export default function Home() {
as="image"
type="image/gif"
/>
<link
rel="preload"
href='https://api.suij1sui.space/api/v2/avatar'
as="image"
type='image/webp'
/>
</Head>

<div
Expand Down

0 comments on commit 9996844

Please sign in to comment.