fix: cannot read properties of undefined (reading 'offsetWidthi')
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import React from 'react'
|
||||
const FooterComponent: React.FC = () => {
|
||||
return (
|
||||
<div style={{ textAlign: 'center', color: 'black' }}>
|
||||
<div
|
||||
style={{
|
||||
textAlign: 'center',
|
||||
color: 'black',
|
||||
bottom: 0,
|
||||
position: 'absolute',
|
||||
width: '100%',
|
||||
}}>
|
||||
schisandra ©{new Date().getFullYear()} Created by schisandra
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -17,7 +17,7 @@ const HomeIndex: React.FC = () => {
|
||||
r: -8,
|
||||
h: 160,
|
||||
w: (el: any) => {
|
||||
return Math.max(320, el.parentNode.offsetWidthi * 0.55)
|
||||
return Math.max(320, el.parentNode.offsetWidth * 0.55)
|
||||
},
|
||||
},
|
||||
|
||||
@@ -47,7 +47,7 @@ const HomeIndex: React.FC = () => {
|
||||
|
||||
{
|
||||
x: () => {
|
||||
return Math.max(260, window.innerWidth * 0.45) * 1
|
||||
return Math.max(260, window.innerWidth * 0.45)
|
||||
},
|
||||
y: -30,
|
||||
r: -5,
|
||||
|
||||
Reference in New Issue
Block a user