File tree 8 files changed +33
-6
lines changed
8 files changed +33
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import createNextIntlPlugin from 'next-intl/plugin';
3
3
const withNextIntl = createNextIntlPlugin ( ) ;
4
4
5
5
/** @type {import('next').NextConfig } */
6
- const nextConfig = { } ;
6
+ const nextConfig = {
7
+
8
+ } ;
7
9
8
10
export default withNextIntl ( nextConfig ) ;
Original file line number Diff line number Diff line change 1
1
import type { NextConfig } from "next" ;
2
2
3
3
const nextConfig : NextConfig = {
4
+ images : {
5
+ remotePatterns : [
6
+ {
7
+ protocol : 'https' ,
8
+ hostname : 'lh3.googleusercontent.com' ,
9
+ port : '' ,
10
+ pathname : '*' ,
11
+ search : '' ,
12
+ } ,
13
+ ] ,
14
+ } ,
4
15
/* config options here */
5
16
async headers ( ) {
6
17
return [
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ width:100%;
27
27
text-align : center ;
28
28
.profilePic {
29
29
cursor : pointer ;
30
+ border-radius : 50px ;
30
31
}
31
32
}
32
33
}
Original file line number Diff line number Diff line change 20
20
background : #1683FF ;
21
21
border-radius :20px ;
22
22
color : #fff ;
23
+
23
24
}
24
25
}
25
26
27
+ .profilePic {
28
+ border-radius : 50px ;
29
+ }
Original file line number Diff line number Diff line change 1
1
2
+ import { useUser } from "@auth0/nextjs-auth0/client" ;
2
3
import styles from "../chatBubbles.module.scss" ;
3
- import Image from 'next/image' ;
4
+
5
+
4
6
5
7
6
8
type Props = {
7
9
text :string
8
10
} ;
9
11
10
12
export default function ChatOut ( props : Props ) {
13
+ const { user } = useUser ( ) ;
11
14
12
15
return (
13
16
< div className = { styles . chatRowReverse } >
14
17
< div className = { styles . chatBubbleOut } >
15
18
< p > { props . text } </ p >
16
19
</ div >
17
- < Image src = { ' /assets/profile.png' } alt = 'veri-fact logo' height = { 40 } width = { 40 } />
20
+ < img src = { user ? user . picture : " /assets/profile.svg" } alt = "me" width = "40" height = "40" className = { styles . profilePic } />
18
21
</ div >
19
22
) ;
20
23
}
Original file line number Diff line number Diff line change 1
1
"use client"
2
2
3
- import Image from "next/image" ;
4
3
import AddTab from "../../components/addTab" ;
5
4
import styles from "../../chat/page.module.scss" ;
6
5
import { useState } from "react" ;
7
6
import UserModal from "../modals/userModal" ;
8
7
import PreferencesModal from "../modals/preferences" ;
9
8
import ReportModal from "../modals/report" ;
9
+ import { useUser } from '@auth0/nextjs-auth0/client' ;
10
10
11
11
12
12
export default function ControlColumn ( ) {
13
13
const [ accountControlIsOpen , setAccountControlIsOpen ] = useState ( false )
14
14
const [ activeModal , setActiveModal ] = useState ( 0 )
15
+ const { user } = useUser ( ) ;
15
16
16
17
return (
17
18
< section className = { styles . controlColumn } >
18
19
< div className = { styles . tabSection } >
19
20
< AddTab />
20
21
</ div >
21
22
< div className = { styles . profileWrapper } >
22
- < Image src = "/assets/profile.png" alt = "me" width = "50" height = "50" className = { styles . profilePic } onClick = { ( ) => setAccountControlIsOpen ( true ) } />
23
- < p > David </ p >
23
+ < img src = { user ? user . picture : "/assets/profile.svg" } alt = "me" width = "50" height = "50" className = { styles . profilePic } onClick = { ( ) => setAccountControlIsOpen ( true ) } />
24
+ < p > { user ? user . name . split ( " " ) [ 0 ] : "" } </ p >
24
25
</ div >
25
26
{ accountControlIsOpen === true ? < UserModal setAccountControlIsOpen = { setAccountControlIsOpen } setActiveModal = { setActiveModal } /> : "" }
26
27
{ activeModal === 1 ? < PreferencesModal setActiveModal = { setActiveModal } /> : "" }
You can’t perform that action at this time.
0 commit comments