@daeryun/dr_components 0.7.60 → 0.7.61
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.
- package/dist/components/page/Lawfirm/Section1.tsx +4 -4
- package/dist/components/page/Lawfirm/Section2.tsx +2 -2
- package/dist/components/page/Lawfirm/Section3.tsx +2 -2
- package/dist/components/page/Lawfirm/Section4.tsx +1 -1
- package/dist/components/page/Lawfirm/Section5.tsx +2 -2
- package/dist/components/page/Lawfirm/Section7.tsx +2 -2
- package/dist/components/page/Lawfirm/Section8.tsx +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -16,10 +16,10 @@ import Section_1_7 from '../../../asset/images/lawfirm/section_1_7.webp';
|
|
|
16
16
|
import Section_1_8 from '../../../asset/images/lawfirm/section_1_8.webp';
|
|
17
17
|
|
|
18
18
|
const Section1 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
19
|
-
const target1Ref = useRef<HTMLDivElement>(null);
|
|
20
|
-
const target2Ref = useRef<HTMLDivElement>(null);
|
|
21
|
-
const target3Ref = useRef<HTMLDivElement>(null);
|
|
22
|
-
const target4Ref = useRef<HTMLDivElement>(null);
|
|
19
|
+
const target1Ref = useRef<HTMLDivElement>(null!);
|
|
20
|
+
const target2Ref = useRef<HTMLDivElement>(null!);
|
|
21
|
+
const target3Ref = useRef<HTMLDivElement>(null!);
|
|
22
|
+
const target4Ref = useRef<HTMLDivElement>(null!);
|
|
23
23
|
const { flag: flag1, flagFastClass: div1Class } = useElementObserve(target1Ref, 0.2);
|
|
24
24
|
const { flag: flag2, flagFastClass: div2Class } = useElementObserve(target2Ref, 1);
|
|
25
25
|
const { flag: flag3, flagFastClass: div3Class } = useElementObserve(target3Ref, 1);
|
|
@@ -10,8 +10,8 @@ const Section2 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
|
10
10
|
const [activeIndex, setActiveIndex] = useState(-1);
|
|
11
11
|
const [showNewPhrase, setShowNewPhrase] = useState(false);
|
|
12
12
|
const [showGradient, setShowGradient] = useState(false);
|
|
13
|
-
const targetRef = useRef<HTMLDivElement>(null);
|
|
14
|
-
const target2Ref = useRef<HTMLDivElement>(null);
|
|
13
|
+
const targetRef = useRef<HTMLDivElement>(null!);
|
|
14
|
+
const target2Ref = useRef<HTMLDivElement>(null!);
|
|
15
15
|
const { flag, flagFastClass: divClass } = useElementObserve(targetRef, 0.3);
|
|
16
16
|
const { flag: flag2 } = useElementObserve(target2Ref, 0.4);
|
|
17
17
|
|
|
@@ -27,8 +27,8 @@ import Section_3_5_t from '../../../asset/images/lawfirm/section_3_5_t.webp';
|
|
|
27
27
|
|
|
28
28
|
const Section3 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
29
29
|
const { width } = useBrowser();
|
|
30
|
-
const target1Ref = useRef<HTMLDivElement>(null);
|
|
31
|
-
const target2Ref = useRef<HTMLDivElement>(null);
|
|
30
|
+
const target1Ref = useRef<HTMLDivElement>(null!);
|
|
31
|
+
const target2Ref = useRef<HTMLDivElement>(null!);
|
|
32
32
|
const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
|
|
33
33
|
const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
|
|
34
34
|
const swiper = useRef<Swiper | null>(null);
|
|
@@ -5,7 +5,7 @@ import Section_4 from '../../../asset/images/lawfirm/section_4.webp';
|
|
|
5
5
|
import Section_4_m from '../../../asset/images/lawfirm/section_4_m.webp';
|
|
6
6
|
|
|
7
7
|
const Section4 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
8
|
-
const targetRef = useRef<HTMLDivElement>(null);
|
|
8
|
+
const targetRef = useRef<HTMLDivElement>(null!);
|
|
9
9
|
const { flag } = useElementObserve(targetRef, 0.3);
|
|
10
10
|
const [triggered, setTriggered] = useState(false);
|
|
11
11
|
|
|
@@ -17,8 +17,8 @@ import Section_5_5 from '../../../asset/images/lawfirm/section_5_5.webp';
|
|
|
17
17
|
import Section_5_6 from '../../../asset/images/lawfirm/section_5_6.webp';
|
|
18
18
|
|
|
19
19
|
const Section5 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
20
|
-
const target1Ref = useRef<HTMLDivElement>(null);
|
|
21
|
-
const target2Ref = useRef<HTMLDivElement>(null);
|
|
20
|
+
const target1Ref = useRef<HTMLDivElement>(null!);
|
|
21
|
+
const target2Ref = useRef<HTMLDivElement>(null!);
|
|
22
22
|
const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
|
|
23
23
|
const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
|
|
24
24
|
const { width } = useBrowser();
|
|
@@ -9,8 +9,8 @@ import Section_7_3 from '../../../asset/images/lawfirm/section_7_3.webp';
|
|
|
9
9
|
|
|
10
10
|
const Section7 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
11
11
|
const [active, setActive] = useState<'system' | 'distribution'>('system');
|
|
12
|
-
const target1Ref = useRef<HTMLDivElement>(null);
|
|
13
|
-
const target2Ref = useRef<HTMLOListElement>(null);
|
|
12
|
+
const target1Ref = useRef<HTMLDivElement>(null!);
|
|
13
|
+
const target2Ref = useRef<HTMLOListElement>(null!);
|
|
14
14
|
const { flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
|
|
15
15
|
const { flag: flag2 } = useElementObserve(target2Ref, 0.1);
|
|
16
16
|
|
|
@@ -8,8 +8,8 @@ import useBrowser from '../../hook/useBrowser';
|
|
|
8
8
|
|
|
9
9
|
const Section8 = ({ CommonPadding }: { CommonPadding: string }) => {
|
|
10
10
|
const { width } = useBrowser(true);
|
|
11
|
-
const target1Ref = useRef<HTMLDivElement>(null);
|
|
12
|
-
const target2Ref = useRef<HTMLDivElement>(null);
|
|
11
|
+
const target1Ref = useRef<HTMLDivElement>(null!);
|
|
12
|
+
const target2Ref = useRef<HTMLDivElement>(null!);
|
|
13
13
|
const { flag: flag, flagFastClass: divClass } = useElementObserve(target1Ref, 0.3);
|
|
14
14
|
const [activeIndex, setActiveIndex] = useState<number>(0);
|
|
15
15
|
|