fix: 홈 화면에 추가를 PC Chrome·Edge(설치창을 띄울 수 있는 브라우저)에서도 보이게, PC Safari·Firefox 에선 숨김
This commit is contained in:
1 parent
77d29ce24f
commit
c788430fa7
3 files changed
+16
-8
No files matched your search
@@ -26,7 +26,7 @@ import { cx } from '../lib/utils'
|
||||
import { useAuth } from './authContext'
|
||||
import { ago, ARTICLE_CAT, articleMeta, AVATAR_COLORS, cardBg, CHARACTERS, dateRange, loadOf, MOODS, shortDay } from './lib'
|
||||
import { GoogleButton } from './googleLogin'
|
||||
import { onPhone, useInstall } from './install'
|
||||
import { useInstall, useInstallable } from './install'
|
||||
import { InstallSheet } from './installBanner'
|
||||
import { MixSheet } from './myGak'
|
||||
import { ownPage, useRegion } from './regionContext'
|
||||
@@ -870,6 +870,7 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: ()
|
||||
/* ---------- 내 정보: 캐릭터·닉네임·로그아웃 ---------- */
|
||||
function MeSheet({ onDone }: { onDone: () => void }) {
|
||||
const install = useInstall()
|
||||
const installable = useInstallable()
|
||||
const { me, logout } = useAuth()
|
||||
const queryClient = useQueryClient()
|
||||
const update = useMutation(updateMeMutation())
|
||||
@@ -905,7 +906,7 @@ function MeSheet({ onDone }: { onDone: () => void }) {
|
||||
<Avatar character={me.character} color={me.color} mood={me.mood} size={64} />
|
||||
<p className="m-0 text-center text-sm font-semibold text-(--ink2)">{me.provider === AuthProvider.GOOGLE ? '구글 계정으로 로그인했어요' : `${me.login_id}(으)로 로그인했어요`}</p>
|
||||
</div>
|
||||
{onPhone() && (
|
||||
{installable && (
|
||||
<button type="button" onClick={() => install('menu')} className="cursor-pointer rounded-2xl bg-[#fff4ec] py-2.5 font-jua text-[15.5px] text-(--orange)">
|
||||
📲 홈 화면에 추가
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user