Skip to content

Commit 730a9c0

Browse files
πŸ› fix: Fix build
1 parent 427bbad commit 730a9c0

File tree

7 files changed

+14
-20
lines changed

7 files changed

+14
-20
lines changed

β€Ždocs/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { ReadmeHero } from '@lobehub/readme-wizard';
21
import { Button } from 'antd';
32
import { Link } from 'dumi';
43
import { Center } from 'react-layout-kit';
54

5+
import ReadmeHero from '@/ReadmeHero';
6+
67
export default () => {
78
return (
89
<Center gap={16} style={{ maxWidth: 960 }} width={'100%'}>

β€Žsrc/Sponsor/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const formateSponsorData = (
5050
return filteredData.sort(sortByGroup).map((item) => {
5151
return {
5252
image: item.sponsor.avatarUrl,
53-
name: item.sponsor.name,
53+
name: item.sponsor.name || 'Guest',
5454
tier: item.tierName || fallbackTier,
5555
totalAmountDonated: getValue(item),
5656
};

β€Žsrc/components/MarkdownEditor/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ const MarkdownEditor = memo<MarkdownEditorProps>(({ onChange, value }) => {
3333
className={styles.editor}
3434
language={'md'}
3535
onValueChange={setCurrentValue}
36-
resize={false}
37-
type={'pure'}
3836
value={currentValue}
37+
variant={'pure'}
3938
/>
4039
);
4140

β€Žsrc/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { genSponsor } from './services/genSponsor';
2+
export { default as Sponsor, type SponsorProps } from './Sponsor';

β€Žsrc/services/sponsorkit/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Sponsor {
1010
avatarUrlMediumRes?: string;
1111
linkUrl?: string;
1212
login: string;
13-
name: string;
13+
name: string | null;
1414
type: 'User' | 'Organization';
1515
websiteUrl?: string;
1616
}
@@ -172,7 +172,7 @@ export interface SponsorkitConfig extends ProvidersConfig {
172172
*
173173
* @default 'sponsors'
174174
*/
175-
name?: string;
175+
name?: string | null;
176176

177177
/**
178178
* Padding of image container

β€Žsrc/types/resources.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

β€Žsrc/utils/remarkFormat.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import { remark } from 'remark';
22
import remarkGfm from 'remark-gfm';
33

4-
export const remarkFormat = (md: string) =>
5-
remark()
4+
export const remarkFormat = async (md: string): Promise<string> => {
5+
const data = await remark()
66
.use(remarkGfm)
77
.use({
88
settings: {
99
bullet: '-',
10+
emphasis: '*',
1011
fences: true,
11-
listItemIndent: 1,
1212
rule: '-',
13+
strong: '*',
1314
tightDefinitions: true,
1415
},
1516
})
1617
.process(md.trim());
18+
19+
return data.toString();
20+
};

0 commit comments

Comments
Β (0)