This commit is contained in:
DefectingCat
2023-01-29 10:13:55 +08:00
parent 0119f82871
commit 3c001e0028
12 changed files with 26 additions and 26 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);