From 87c6a4078d228a2456f6bc1cbbc0b6ac76dadc37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Thu, 25 Apr 2024 16:40:02 +0200 Subject: [PATCH] Change: Don't require the to prop for Link component Actually it is optional and it is set to an empty string by default already. --- src/web/components/link/link.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/components/link/link.jsx b/src/web/components/link/link.jsx index ca6b3faac9..44fd9711a1 100644 --- a/src/web/components/link/link.jsx +++ b/src/web/components/link/link.jsx @@ -82,7 +82,7 @@ Link.propTypes = { anchor: PropTypes.string, filter: PropTypes.oneOfType([PropTypes.filter, PropTypes.string]), query: PropTypes.object, - to: PropTypes.string.isRequired, + to: PropTypes.string, }; Link = styled(withTextOnly(Link))`