@edu-tosel/design 1.0.311 → 1.0.312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useRef, useEffect } from "react";
2
+ import { useRef, useLayoutEffect } from "react";
3
3
  import { cn, isHTMLString } from "../../../util";
4
4
  import BannerMolecule from "./molecule/Banner";
5
5
  import gsap from "gsap";
@@ -20,7 +20,7 @@ export default function One({ event, button }) {
20
20
  sizes: "w-full xl:max-w-[796px]",
21
21
  spacing: "gap-y-8 ",
22
22
  };
23
- useEffect(() => {
23
+ useLayoutEffect(() => {
24
24
  if (!isMD)
25
25
  return;
26
26
  const ctx = gsap.context(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.311",
3
+ "version": "1.0.312",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.311
1
+ 1.0.312