Skip to content

Commit 830c494

Browse files
committed
chore: update sponsors
1 parent 9a2a0f4 commit 830c494

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pages/others/sponsors.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export const meta = {
1010

1111
export const SponsorList = () => {
1212
const theme = useTheme()
13-
const list = Sponsors.map(item => ({ ...item, amount: item.amount.toFixed(2) }))
13+
const list = Sponsors.map(item => ({ ...item, amount: item.amount.toFixed(2) })).sort((a, b) =>
14+
a.isSponsor ? -1 : 1,
15+
)
1416
return (
1517
<Grid.Container gap={2}>
1618
{list.map((item, index) => (

sponsors.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
const Sponsors = [
2+
{
3+
name: '*进秋',
4+
amount: 1.45,
5+
},
26
{
37
name: 'MinLiang Zeng',
48
amount: 1,

0 commit comments

Comments
 (0)