Skip to content

Commit

Permalink
refactor: @toss/utils에서 제공해주는 유틸 함수로 대체하기 (toss#28)
Browse files Browse the repository at this point in the history
* refactor: @toss/utils에서 제공해주는 유틸 함수로 대체하기

* fix: pnp.cjs & yarn.lock 파일 업데이트

Co-authored-by: Sojin Park <[email protected]>
  • Loading branch information
okinawaa and raon0211 authored Oct 12, 2022
1 parent aa513a7 commit 9b0ddc0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/react/emotion-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"dependencies": {
"@babel/runtime": "^7.14.8",
"@toss/utils": "workspace:^1.0.1",
"csstype": "^3.0.9"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/react/emotion-utils/src/FullHeight.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/** @jsxImportSource @emotion/react */
import { css } from '@emotion/react';
import { isServer } from '@toss/utils';
import { HTMLAttributes, ReactNode, useEffect, useLayoutEffect, useState } from 'react';

declare const global: unknown;
const isServer = () => typeof window === 'undefined' && typeof global !== 'undefined';
const useIsomorphicLayoutEffect = isServer() ? useEffect : useLayoutEffect;

/**
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5403,6 +5403,7 @@ __metadata:
"@slash/rollup-config": "workspace:^"
"@testing-library/jest-dom": ^5.16.4
"@testing-library/react": ^13.3.0
"@toss/utils": "workspace:^1.0.1"
"@tossteam/jest": ^17
"@types/babel__core": ^7
"@types/jest": ^28.1.8
Expand Down

0 comments on commit 9b0ddc0

Please sign in to comment.