chore(deps): update dependencies

This commit is contained in:
xfy
2024-09-02 09:05:24 +08:00
parent 7d2d495db1
commit 9308c9e7be
6 changed files with 1231 additions and 952 deletions

View File

@ -30,7 +30,7 @@ const GistsCode = ({ file, showFileName = false }: Props) => {
.use(remarkParse)
.use(remarkRehype)
.use(remarkGfm)
.use(rehypeHighlight, { ignoreMissing: true })
.use(rehypeHighlight)
.use(rehypeReact, {
createElement,
Fragment,

View File

@ -19,7 +19,7 @@ type Props = {
const RUACodepen = ({ defaultTab, url }: Props) => {
const urlArr = url.split('/');
const { systemTheme, theme } = useTheme();
const currentTheme = theme === 'system' ? systemTheme : theme ?? 'light';
const currentTheme = theme === 'system' ? systemTheme : (theme ?? 'light');
const { ref, inView } = useInView();