File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { Config } from './types.js'
2
2
3
3
export const defaults : Omit < Config , 'db' | 'editor' | 'secret' > = {
4
4
admin : {
5
- avatar : 'default ' ,
5
+ avatar : 'gravatar ' ,
6
6
components : { } ,
7
7
custom : { } ,
8
8
dateFormat : 'MMMM do yyyy, h:mm a' ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import React from 'react'
5
5
import { useAuth } from '../../providers/Auth/index.js'
6
6
import { useConfig } from '../../providers/Config/index.js'
7
7
import { DefaultAccountIcon } from './Default/index.js'
8
- export { GravatarAccountIcon } from './Gravatar/index.js'
8
+ import { GravatarAccountIcon } from './Gravatar/index.js'
9
9
10
10
export const Account = ( ) => {
11
11
const {
@@ -22,4 +22,6 @@ export const Account = () => {
22
22
const isOnAccountPage = pathname === `${ adminRoute } ${ accountRoute } `
23
23
24
24
if ( ! user ?. email || Avatar === 'default' ) return < DefaultAccountIcon active = { isOnAccountPage } />
25
+ if ( Avatar === 'gravatar' ) return < GravatarAccountIcon />
26
+ if ( Avatar ) return < Avatar active = { isOnAccountPage } />
25
27
}
You can’t perform that action at this time.
0 commit comments