Skip to content

Commit

Permalink
More various fixes (#322)
Browse files Browse the repository at this point in the history
- Text that shouldn't always be uppercase
- Use username in user management page
  • Loading branch information
Samuel-Therrien-Beslogic authored Dec 4, 2024
1 parent 52e4525 commit df01694
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion canopeum_frontend/src/components/social/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const PostCard = ({ post, showActions }: Props) => {
/>
</Link>
<div className='d-flex flex-column'>
<h6 className='text-uppercase fw-bold mb-1'>
<h6 className='fw-bold mb-1'>
<Link to={appRoutes.siteSocial(post.site.id)}>{post.site.name}</Link>
</h6>
<Link className='text-muted initialism' to={appRoutes.postDetail(post.id)}>
Expand Down
1 change: 0 additions & 1 deletion canopeum_frontend/src/locale/en/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default {
'table-row-13': 'Types of seeds collected',
'last-update': 'Last Update',
visitors: 'Visitors',
sponsored: 'Sponsored',
'unnamed-site': 'Unnamed site',
'site-save-success': 'Site saved successfully',
'site-save-error': 'Error saving Site',
Expand Down
1 change: 0 additions & 1 deletion canopeum_frontend/src/locale/fr/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default {
'table-row-13': 'Types de graines collectées',
'last-update': 'Dernière Mise à Jour',
visitors: 'Visiteurs',
sponsored: 'Sponsorisé',
'unnamed-site': 'Site sans nom',
'site-save-success': 'Site saved successfully',
'site-save-error': 'Error saving Site',
Expand Down
6 changes: 1 addition & 5 deletions canopeum_frontend/src/pages/UserManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ const UserManagement = () => {
<div className='col-12 col-md-5 col-lg-3 pb-4'>
<div className='settings-left-nav-menu card py-3 px-4'>
<div className='py-3 d-none d-md-block'>
<h4 className='text-center'>
{currentUser?.role === 'MegaAdmin'
? 'CANOPEUM'
: currentUser?.username}
</h4>
<h4 className='text-center'>{currentUser?.username}</h4>
</div>

<div className='d-flex flex-column gap-2'>{tabsDisplay()}</div>
Expand Down

0 comments on commit df01694

Please sign in to comment.