Ignore:
Timestamp:
12/29/25 00:37:49 (6 months ago)
Author:
Mihail <mihail2.naumov@…>
Branches:
main
Children:
5af32f0
Parents:
ae5d054
Message:

Added Forge Page, added suggest component, fixed styling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/dashboard/admin/+Page.tsx

    rae5d054 r8a7f936  
    4949    const openSuggestionReview = (id: number, action: 'approved' | 'rejected') => {
    5050        setSuggestionDialog({ open: true, id, action });
    51         setAdminComment(action === 'approved' ? "Approved by admin." : "Rejected: ");
     51        setAdminComment(action === 'approved' ? "" : "");
    5252    };
    5353
     
    123123                                                        </a>
    124124                                                    </TableCell>
    125                                                     <TableCell>{sug.componentType}</TableCell>
     125                                                    <TableCell>{sug.componentType.toUpperCase()}</TableCell>
    126126                                                    <TableCell>{sug.userId}</TableCell>
    127127                                                    <TableCell align="right">
     
    207207
    208208            <Dialog open={suggestionDialog.open} onClose={() => setSuggestionDialog({...suggestionDialog, open: false})}>
    209                 <DialogTitle>Review Suggestion</DialogTitle>
     209                <DialogTitle>Review Component Suggestion</DialogTitle>
    210210                <DialogContent>
    211211                    <Typography gutterBottom>Status: <b>{suggestionDialog.action.toUpperCase()}</b></Typography>
Note: See TracChangeset for help on using the changeset viewer.