11import React from 'react' ;
22
33import Analytics from '../membership/Analytics' ;
4- import Facebook from './Facebook' ;
54import LockSite from './LockSite' ;
6- import Metadata from './Metadata' ;
75import PublicationLanguage from './PublicationLanguage' ;
86import SEOMeta from './SEOMeta' ;
97import SearchableSection from '../../SearchableSection' ;
108import SocialAccounts from './SocialAccounts' ;
119import TimeZone from './TimeZone' ;
1210import TitleAndDescription from './TitleAndDescription' ;
13- import Twitter from './Twitter' ;
1411import Users from './Users' ;
15- import useFeatureFlag from '../../../hooks/useFeatureFlag' ;
16-
17- // @TODO : Remove this for 6.0 -->
18- export const searchKeywords5x = {
19- titleAndDescription : [ 'general' , 'title and description' , 'site title' , 'site description' , 'title & description' ] ,
20- timeZone : [ 'general' , 'time' , 'date' , 'site timezone' , 'time zone' ] ,
21- publicationLanguage : [ 'general' , 'publication language' , 'locale' ] ,
22- metadata : [ 'general' , 'metadata' , 'title' , 'description' , 'search' , 'engine' , 'google' , 'meta data' ] ,
23- twitter : [ 'general' , 'twitter card' , 'structured data' , 'rich cards' , 'x card' , 'social' ] ,
24- facebook : [ 'general' , 'facebook card' , 'structured data' , 'rich cards' , 'social' ] ,
25- socialAccounts : [ 'general' , 'social accounts' , 'facebook' , 'twitter' , 'structured data' , 'rich cards' ] ,
26- lockSite : [ 'general' , 'password protection' , 'lock site' , 'make this site private' ] ,
27- users : [ 'general' , 'users and permissions' , 'roles' , 'staff' , 'invite people' , 'contributors' , 'editors' , 'authors' , 'administrators' ]
28- } ;
29- // <--
3012
3113export const searchKeywords = {
3214 titleAndDescription : [ 'general' , 'title and description' , 'site title' , 'site description' , 'title & description' ] ,
@@ -40,24 +22,6 @@ export const searchKeywords = {
4022} ;
4123
4224const GeneralSettings : React . FC = ( ) => {
43- const ui60 = useFeatureFlag ( 'ui60' ) ;
44-
45- if ( ! ui60 ) {
46- return (
47- < SearchableSection keywords = { Object . values ( searchKeywords5x ) . flat ( ) } title = "General settings" >
48- < TitleAndDescription keywords = { searchKeywords5x . titleAndDescription } />
49- < TimeZone keywords = { searchKeywords5x . timeZone } />
50- < PublicationLanguage keywords = { searchKeywords5x . publicationLanguage } />
51- < Metadata keywords = { searchKeywords5x . metadata } />
52- < Twitter keywords = { searchKeywords5x . twitter } />
53- < Facebook keywords = { searchKeywords5x . facebook } />
54- < SocialAccounts keywords = { searchKeywords5x . socialAccounts } />
55- < LockSite keywords = { searchKeywords5x . lockSite } />
56- < Users keywords = { searchKeywords5x . users } />
57- </ SearchableSection >
58- ) ;
59- }
60-
6125 // This section is going to be updated with merging Twitter and Facebook to the Metadata group,
6226 // that's why we're using a dedicated searchKeywords array for it.
6327 return (
0 commit comments