Skip to content

Conversation

@forestream
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jun 15, 2025

⚠️ No Changeset found

Latest commit: 9a89443

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Jun 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines 1 to 26
'use client'

import { useEffect, useState } from 'react'

export const useViewportSize = () => {
const [viewportSize, setViewportSize] = useState({
width: 0,
height: 0,
})

useEffect(() => {
const handleResize = () => {
setViewportSize({
width: window.innerWidth,
height: window.innerHeight,
})
}

window.addEventListener('resize', handleResize)
handleResize()

return () => window.removeEventListener('resize', handleResize)
}, [])

return viewportSize
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제거해도 되는 훅으로 보입니다

Comment on lines 1 to 17
'use client'

import { useEffect, useState } from 'react'

export const useBoundingClientRect = (
ref: React.RefObject<HTMLElement | null>,
) => {
const [rect, setRect] = useState<DOMRect | null>(null)

useEffect(() => {
if (ref.current) {
setRect(ref.current.getBoundingClientRect())
}
}, [ref])

return rect
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제거해도 되는 훅으로 보입니다

@owjs3901 owjs3901 merged commit bcac76b into main Jun 16, 2025
2 checks passed
@owjs3901 owjs3901 deleted the fix-landing branch June 16, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants