We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2a0f4 commit 830c494Copy full SHA for 830c494
pages/others/sponsors.mdx
@@ -10,7 +10,9 @@ export const meta = {
10
11
export const SponsorList = () => {
12
const theme = useTheme()
13
- const list = Sponsors.map(item => ({ ...item, amount: item.amount.toFixed(2) }))
+ const list = Sponsors.map(item => ({ ...item, amount: item.amount.toFixed(2) })).sort((a, b) =>
14
+ a.isSponsor ? -1 : 1,
15
+ )
16
return (
17
<Grid.Container gap={2}>
18
{list.map((item, index) => (
sponsors.js
@@ -1,4 +1,8 @@
1
const Sponsors = [
2
+ {
3
+ name: '*进秋',
4
+ amount: 1.45,
5
+ },
6
{
7
name: 'MinLiang Zeng',
8
amount: 1,
0 commit comments