File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React , { useState } from 'react' ;
1+ import React , { useEffect , useState } from 'react' ;
22import Image from 'next/image' ;
33import styled from 'styled-components' ;
44import Tag from './Tag' ;
55import Button from './Button' ;
66import { useRouter } from 'next/navigation' ;
77import ConfirmModal from './ConfirmModal' ;
88import { useRecoilState , useSetRecoilState } from 'recoil' ;
9- import { toastState } from '@/recoil/toastStore' ;
109import { deletePlanetLetter } from '@/api/planet/letter/spaceLetter' ;
1110import { droppedLetterState } from '@/recoil/letterStore' ;
1211import BlinkTag from './BlinkingTag' ;
1312import { useToast } from '@/hooks/useToast' ;
1413import { getCookie } from '@/utils/storage' ;
14+ import { PLANET_BLUR_DATA } from '@/constants/planetBlur' ;
1515
1616interface Orbit {
1717 letterId : string ;
@@ -131,6 +131,8 @@ const Planet = (props: PlanetProps) => {
131131 width = { 400 }
132132 height = { 400 }
133133 alt = "planet"
134+ placeholder = "blur"
135+ blurDataURL = { 'data:/image/png;base64,' + PLANET_BLUR_DATA [ planetType ] }
134136 priority
135137 onContextMenu = { handleContextMenu }
136138 />
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments