Skip to content

Commit e0e91b9

Browse files
committed
Add modalProps prop in News
1 parent d02286b commit e0e91b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/organisms/news/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import useFetchNews from "./useFetchNews"
1010

1111
const emptyArray = []
1212

13-
const News = ({ app = "cloud", onCloseClick, children }) => {
13+
const News = ({ app = "cloud", onCloseClick, modalProps = {}, children }) => {
1414
const lastSeen = localStorage.getItem("news_last_seen")
1515
const [news, setNews] = useState(emptyArray)
1616
const [error, setError] = useState()
@@ -53,6 +53,7 @@ const News = ({ app = "cloud", onCloseClick, children }) => {
5353
height={{ max: "640px" }}
5454
gap={4}
5555
column
56+
{...modalProps}
5657
>
5758
<Header onClose={onClose} />
5859
<Container column gap={6}>

0 commit comments

Comments
 (0)