mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Fix name
This commit is contained in:
@ -9,7 +9,7 @@ type Props = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const RuaLoading = ({ className: classNames }: Props) => {
|
||||
const RUALoading = ({ className: classNames }: Props) => {
|
||||
const { systemTheme, theme } = useTheme();
|
||||
const currentTheme = theme === 'system' ? systemTheme : theme;
|
||||
|
||||
@ -34,4 +34,4 @@ const RuaLoading = ({ className: classNames }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RuaLoading);
|
||||
export default memo(RUALoading);
|
||||
|
@ -15,7 +15,7 @@ type Props = {
|
||||
url: string;
|
||||
};
|
||||
|
||||
const RuaCodeSandbox = ({ url }: Props) => {
|
||||
const RUACodeSandbox = ({ url }: Props) => {
|
||||
const isUrl = pattern.test(url);
|
||||
const { systemTheme, theme } = useTheme();
|
||||
const currentTheme = theme === 'system' ? systemTheme : theme ?? 'light';
|
||||
@ -64,4 +64,4 @@ const RuaCodeSandbox = ({ url }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RuaCodeSandbox);
|
||||
export default memo(RUACodeSandbox);
|
||||
|
@ -14,7 +14,7 @@ type Props = {
|
||||
url: string;
|
||||
};
|
||||
|
||||
const RuaCodepen = ({ defaultTab, url }: Props) => {
|
||||
const RUACodepen = ({ defaultTab, url }: Props) => {
|
||||
const urlArr = url.split('/');
|
||||
const { systemTheme, theme } = useTheme();
|
||||
const currentTheme = theme === 'system' ? systemTheme : theme ?? 'light';
|
||||
@ -80,4 +80,4 @@ const RuaCodepen = ({ defaultTab, url }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RuaCodepen);
|
||||
export default memo(RUACodepen);
|
||||
|
@ -13,7 +13,7 @@ type Props = {
|
||||
total?: number;
|
||||
} & DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
|
||||
const RuaPagination = ({
|
||||
const RUAPagination = ({
|
||||
hasPrev,
|
||||
hasNext,
|
||||
prevLink,
|
||||
@ -59,4 +59,4 @@ const RuaPagination = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RuaPagination);
|
||||
export default memo(RUAPagination);
|
||||
|
@ -4,7 +4,7 @@ import { memo } from 'react';
|
||||
|
||||
interface Props extends SandpackProps {}
|
||||
|
||||
const RuaSandpack = ({ ...rest }: Props) => {
|
||||
const RUASandpack = ({ ...rest }: Props) => {
|
||||
const { systemTheme, theme } = useTheme();
|
||||
const currentTheme = theme === 'system' ? systemTheme : theme;
|
||||
|
||||
@ -20,4 +20,4 @@ const RuaSandpack = ({ ...rest }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(RuaSandpack);
|
||||
export default memo(RUASandpack);
|
||||
|
Reference in New Issue
Block a user