Merge pull request #30 from BreizhHardware/hotfix/sort

Hotfix/sort
This commit is contained in:
Félix MARQUET
2025-11-21 09:20:17 +01:00
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
{
"name": "Node.js 24",
"image": "mcr.microsoft.com/devcontainers/javascript-node:24",
"features": {
"ghcr.io/devcontainers/features/git-lfs:1": {}
},
"customizations": {
"vscode": {
"settings": {}
}
},
"postCreateCommand": "npm install -g pnpm && pnpm install"
}

View File

@@ -106,7 +106,7 @@ export default function AdminPage() {
const [selectedUserIds, setSelectedUserIds] = useState<string[]>([]);
const [sortBy, setSortBy] = useState<'date' | 'createdAt'>('date');
const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('desc');
const [showPendingFirst, setShowPendingFirst] = useState(false);
const [showPendingFirst, setShowPendingFirst] = useState(true);
const { refetchSettings } = useSettings();
useEffect(() => {