/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/me/developer/controller.jsx
19 строк
499 B
Jarda Snajdr
Rename .js to .jsx (try 2) (#110347)
30 апр 2026, 21:01
Не верифицирован
30 апр 2026, 21:01
d2fc75f
Код
Авторство
О чём код?
import { useTranslate } from 'i18n-calypso'; import DocumentHead from 'calypso/components/data/document-head'; import DeveloperComponent from 'calypso/me/developer/main'; export function developer( context, next ) { const DeveloperTitle = () => { const translate = useTranslate(); return <DocumentHead title={ translate( 'Developer Features', { textOnly: true } ) } />; }; context.primary = ( <> <DeveloperTitle /> <DeveloperComponent path={ context.path } /> </> ); next(); }