@os-design/website
Advanced tools
Comparing version 0.0.38 to 0.0.39
import React from 'react'; | ||
export interface ContactsPageProps { | ||
import { WithLang } from '../utils/lang'; | ||
export interface ContactsPageProps extends WithLang { | ||
email: string; | ||
@@ -4,0 +5,0 @@ } |
@@ -15,3 +15,2 @@ "use strict"; | ||
const TeamItem_1 = __importDefault(require("./TeamItem")); | ||
const i18next_1 = __importDefault(require("i18next")); | ||
const MailLink = styled_1.default(core_1.Link) ` | ||
@@ -24,3 +23,3 @@ font-size: 1.5em; | ||
const ContactsPage = props => { | ||
const translation = i18next_1.default.language === 'ru' ? ru_json_1.default : en_json_1.default; | ||
const translation = props.lang === 'ru' ? ru_json_1.default : en_json_1.default; | ||
const renderTeamItem = (fileName) => (react_1.default.createElement(TeamItem_1.default, { fileName: fileName, name: translation.team[fileName].name, position: translation.team[fileName].position })); | ||
@@ -27,0 +26,0 @@ return (react_1.default.createElement(react_1.default.Fragment, null, |
import React from 'react'; | ||
export interface EarlyAccessSectionProps { | ||
import { WithLang } from '../utils/lang'; | ||
export interface EarlyAccessSectionProps extends WithLang { | ||
appName: string; | ||
@@ -4,0 +5,0 @@ } |
@@ -15,3 +15,2 @@ "use strict"; | ||
const core_1 = require("@os-design/core"); | ||
const i18next_1 = __importDefault(require("i18next")); | ||
const DarkSection_1 = __importDefault(require("../DarkSection")); | ||
@@ -24,3 +23,3 @@ const Feature_1 = __importDefault(require("../Feature")); | ||
const EarlyAccessSection = props => { | ||
const translation = i18next_1.default.language === 'ru' ? ru_json_1.default : en_json_1.default; | ||
const translation = props.lang === 'ru' ? ru_json_1.default : en_json_1.default; | ||
const [email, setEmail] = react_1.useState(''); | ||
@@ -27,0 +26,0 @@ const [status, setStatus] = react_1.useState(null); |
import React from 'react'; | ||
export interface ErrorSectionProps { | ||
import { WithLang } from '../utils/lang'; | ||
export interface ErrorSectionProps extends WithLang { | ||
statusCode?: number; | ||
@@ -4,0 +5,0 @@ } |
@@ -9,3 +9,2 @@ "use strict"; | ||
const core_1 = require("@os-design/core"); | ||
const i18next_1 = __importDefault(require("i18next")); | ||
const en_json_1 = __importDefault(require("./locales/en.json")); | ||
@@ -21,3 +20,3 @@ const ru_json_1 = __importDefault(require("./locales/ru.json")); | ||
const ErrorSection = props => { | ||
const translation = i18next_1.default.language === 'ru' ? ru_json_1.default : en_json_1.default; | ||
const translation = props.lang === 'ru' ? ru_json_1.default : en_json_1.default; | ||
let message = translation.withoutStatus; | ||
@@ -24,0 +23,0 @@ if (props.statusCode === 404) { |
{ | ||
"name": "@os-design/website", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"license": "MIT", | ||
@@ -24,4 +24,3 @@ "main": "lib/index.js", | ||
"@os-design/utils": "^0.0.3", | ||
"facepaint": "^1.2.1", | ||
"i18next": "^19.0.1" | ||
"facepaint": "^1.2.1" | ||
}, | ||
@@ -36,3 +35,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "2efdb4e3c0d6df26ac20a5beb8435a9c092de6f1" | ||
"gitHead": "4ce7f2c5d7c6b9cb7b930d9d675157c79f7df818" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71984
8
106
1052
- Removedi18next@^19.0.1
- Removedi18next@19.9.2(transitive)