fix: wallet toast link

This commit is contained in:
Sean Yesmunt 2019-07-01 14:51:57 -04:00
parent 936d31b914
commit f387f4c01f

View file

@ -51,7 +51,11 @@ class SnackBar extends React.PureComponent<Props> {
<div>&#9432;</div>
<div>{message}</div>
</div>
{linkText && linkTarget && <Button navigate={linkTarget} className="snack-bar__action" label={linkText} />}
{linkText && linkTarget && (
// This is a little weird because of `linkTarget` code in `lbry-redux`
// Any navigation code should happen in the app, and that should be removed from lbry-redux
<Button navigate={`/$${linkTarget}`} className="snack-bar__action" label={linkText} />
)}
</div>
);
}