export const SpecialBlockSlider: React.FC<SpecialBlockSliderProps> = ({ block }) => {
const somePropsUndefined =
!block || !block?.item || !block?.item?.publisher || !block?.item?.publisher?.items || !block?.item?.publisher?.items?.length;
if (somePropsUndefined) {
return null;
}
const {
rubric, title,
} = block.item;
const itemsProps = getSlides({
publisherItems: block.item.publisher.items, rubric,
});
return (
<article className="gutter gutter-t-0 ov-h">
<SectionHeader title={title} type="l" />
<div className="gutter-b">
<Shaker items={itemsProps} loadMore={() => null} customLink={Link} />
</div>
</article>
);
};
export const Shaker: React.FC<ShakerProps> = (props) => {
const { items, loadMore, style, className, customLink } = props;
const [componentState, setComponentState] = React.useState<ShakerState>({
...
});
return (
<ShakerSlideItem
cards={componentState.cards}
isActionDisabled={componentState.isActionDisabled}
showMoreClickHandler={showMoreClickHandler}
description={getCurrentDescription(componentState.cards)}
style={style}
className={className}
customLink={customLink}
/>
);
};
import * as React from 'react';
import { useSelector } from 'react-redux';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { AppState, IsLoadingState } from './types/state';
import { NotFoundPage } from './projects/not-found/NotFoundPage';
import { HomePage } from './projects/intro/HomePage';
import { Sample } from './projects/sample/Sample';
import { SecondSample} from './projects/secondSample/SecondSample';
import { SampleTwo } from './projects/sampleTwo/SampleTwo ';
interface Props {
}
export const App = (props: Props): React.ReactElement => {
return (
<>
<Router>
<div>
<main className="content-box">
<Switch>
<Route exact path="/">
<HomePage />
</Route>
<Route exact path="/sample">
<Sample />
</Route>
<Route exact path="/sample/second-page">
<SampleSecond />
</Route>
<Route exact path="/sample-two">
<SampleTwo />
</Route>
</Switch>
</main>
</div>
</Router>
</>
);
};
Вы в базу смотрели? Может так оно и есть?
Попробуйте сгенерить через UrlHelper.
To: a@a.ru
Subject: Password reset for My Application
X-PHP-Originating-Script: 0:SimpleMailInvoker.php
Message-ID: <dbfddb1e48169b750e29a4f6b8de5a51@site.loc>
Date: Wed, 15 Aug 2018 13:26:09 +0300
From: My Application robot <robot@maskota.ru>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="_=_swift_v4_1534328769_98fc8bf0e846af36a926a8d2437a34c5_=_"
--_=_swift_v4_1534328769_98fc8bf0e846af36a926a8d2437a34c5_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
=20
Hello, userFollow the link below to reset your password:
=20
/site/0<br/>
aSUsQGlNEEnk0YfpAJK0JnQYYJAPmkAv_1534326306
--_=_swift_v4_1534328769_98fc8bf0e846af36a926a8d2437a34c5_=_
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html>
<html lang=3D"ru">
<head>
=09<meta http-equiv=3D"X-U=
A-Compatible" content=3D"IE=3Dedge">
=09<meta charset=3D"UTF-8">
=
<title></title>
</head>
<body>
=20
<div class=3D"password-reset">
<p>Hello, user</p>
<p>Follow the link below to reset your password:</p>
<p><a href=3D"http://site.loc/site/reset-password?token=3DaSUsQGlNEE=
nk0YfpAJK0JnQYYJAPmkAv_1534326306">http://site.loc/site/reset-password?t=
oken=3DaSUsQGlNEEnk0YfpAJK0JnQYYJAPmkAv_1534326306</a></p>
</div> </body>
</html>
--_=_swift_v4_1534328769_98fc8bf0e846af36a926a8d2437a34c5_=_--
<?php
use yii\helpers\Html;
?>
<?php $this->beginPage() ?>
<?php $this->beginBody() ?>
<?= $content ?>
<?php $this->endBody() ?>
<?php $this->endPage() ?>
<?php
use yii\helpers\Html;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="<?= Yii::$app->charset ?>">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<?= $content ?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>