Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
www.catalystexplorer.com
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lidonation
www.catalystexplorer.com
Merge requests
!23
Avatar reusable component
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Avatar reusable component
LN-1253-ce-user-menu-on-side-bar
into
dev
Overview
0
Commits
2
Pipelines
2
Changes
1
Closed
Cindy Joan
requested to merge
LN-1253-ce-user-menu-on-side-bar
into
dev
2 months ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
dev
version 1
7bd2b445
2 months ago
dev (base)
and
latest version
latest version
14cd044e
2 commits,
2 months ago
version 1
7bd2b445
1 commit,
2 months ago
1 file
+
11
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
application/resources/js/Components/Avatar.tsx
0 → 100644
+
11
−
0
Options
import
{
usePage
}
from
"
@inertiajs/react
"
;
import
ThemeSwitcher
from
"
./layout/ThemeSwitcher
"
;
export
default
function
Avatar
()
{
const
{
auth
}
=
usePage
().
props
return
(
<
div
className
=
"h-9 w-9 rounded-full bg-gray-400"
>
{
auth
.
user
?
<
img
src
=
{
auth
.
avatar
}
alt
=
'avatar'
/>
:
''
}
</
div
>
)
}
\ No newline at end of file
Loading