feat(core): add new loading doc component (#11737)

This commit is contained in:
JimmFly
2025-04-17 18:54:38 +08:00
committed by GitHub
parent bfecd1856b
commit c2c106f508
28 changed files with 257 additions and 88 deletions
@@ -75,8 +75,7 @@ export const ErrorDetail: FC<ErrorDetailProps> = props => {
}, [onButtonClick, resetError]);
const desc = descriptions.map((item, i) => (
// eslint-disable-next-line react/no-array-index-key
<p key={i} className={styles.text}>
<p key={`error-desc-${i}`} className={styles.text}>
{item}
</p>
));
@@ -137,15 +136,17 @@ export const ErrorDetail: FC<ErrorDetailProps> = props => {
export function ContactUS() {
return (
<Trans>
If you are still experiencing this issue, please{' '}
<a
style={{ color: 'var(--affine-primary-color)' }}
href="https://community.affine.pro"
target="__blank"
>
contact us through the community.
</a>
</Trans>
<Trans
i18nKey="com.affine.error.contact-us"
components={{
1: (
<a
style={{ color: 'var(--affine-primary-color)' }}
href="https://community.affine.pro"
target="__blank"
/>
),
}}
/>
);
}