Skip to content

Commit aaef0c1

Browse files
authored
Changes in News and Document (#595)
* Add modalProps prop in News * Add modalProps in Documentaion
1 parent d02286b commit aaef0c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/organisms/documentation/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const Documentation = ({
5959
onGoToDemoClick,
6060
children,
6161
demoUrl,
62+
modalProps = {},
6263
}) => {
6364
const [isOpen, toggle] = useToggle()
6465
const [view, setView] = useState(views.general)
@@ -93,6 +94,7 @@ const Documentation = ({
9394
max: isGeneral ? "325px" : view === views.dashboard ? "600px" : "100%",
9495
}}
9596
data-testid="documentation-layer"
97+
{...modalProps}
9698
>
9799
<Header onClose={closeClicked}>
98100
{isGeneral && (

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)