Skip to content

Commit 48bcfa8

Browse files
ruvenzxdorsha
andauthored
User profile css (#222)
* descope sdk version upgrade for widget fix * add yarn.lock file * add yarn.lock file * user profile css --------- Co-authored-by: Doron Sharon <dorsha@descope.com>
1 parent 6697835 commit 48bcfa8

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/profile/Profile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { UserProfile, useSession } from "@descope/react-sdk";
2+
import './profile.css';
23

34
function Profile() {
45
const { isAuthenticated, isSessionLoading } = useSession();
56

67
return (
78
<>
8-
<div>
9+
<div className="profile">
910
{isAuthenticated || isSessionLoading ? <UserProfile
1011
widgetId="user-profile-widget"
1112
onLogout={() => {

src/components/profile/profile.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.profile {
2+
border: 30px solid transparent;
3+
border-radius: 100px;
4+
max-width: fit-content;
5+
margin-left: auto;
6+
margin-right: auto;
7+
}

0 commit comments

Comments
 (0)