- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
590 B
JavaScript
16 lines
590 B
JavaScript
import { jsx } from 'react/jsx-runtime';
|
|
import { invariant } from 'motion-utils';
|
|
import * as React from 'react';
|
|
import { useConstant } from '../utils/use-constant.mjs';
|
|
import { LayoutGroup } from './LayoutGroup/index.mjs';
|
|
|
|
let id = 0;
|
|
const AnimateSharedLayout = ({ children }) => {
|
|
React.useEffect(() => {
|
|
invariant(false, "AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations");
|
|
}, []);
|
|
return (jsx(LayoutGroup, { id: useConstant(() => `asl-${id++}`), children: children }));
|
|
};
|
|
|
|
export { AnimateSharedLayout };
|