This commit is contained in:
@@ -47,7 +47,7 @@ export default function Slide1() {
|
||||
const genYs = useMemo(() => {
|
||||
const ys = [];
|
||||
for (let i = 0; i < titles.length; i++) {
|
||||
ys.push([]);
|
||||
ys.push([] as string[]);
|
||||
for (let j = 0; j < titles.length+1; j++) {
|
||||
if ((j % titles.length) === i) {
|
||||
ys[i].push('0%', '0%'); // Current title
|
||||
@@ -66,7 +66,7 @@ export default function Slide1() {
|
||||
const genOs = useMemo(() => {
|
||||
const os = [];
|
||||
for (let i = 0; i < titles.length; i++) {
|
||||
os.push([]);
|
||||
os.push([] as number[]);
|
||||
for (let j = 0; j < titles.length+1; j++) {
|
||||
if ((j % titles.length) === i) {
|
||||
os[i].push(1, 1); // Current title
|
||||
|
Reference in New Issue
Block a user