Skip to content

Commit dd787f4

Browse files
committed
Add id to modals
1 parent b1ae0c8 commit dd787f4

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.38",
3+
"version": "0.1.39",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Modals/Modal.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ ModalTitlebar.defaultProps = {
143143

144144
export const ModalRow = ({
145145
type,
146+
id,
146147
children,
147148
}: {
148149
type: ModelRowTypes;
150+
id?: string;
149151
children?: ReactNode;
150152
}) => {
151153
const theme = useTheme();
@@ -154,6 +156,7 @@ export const ModalRow = ({
154156
case "buttons":
155157
return (
156158
<StyledModalRow
159+
id={id}
157160
color={theme.palette.text}
158161
buttonColor={theme.palette.primary}
159162
roundness={theme.roundness}
@@ -169,16 +172,19 @@ export const ModalRow = ({
169172
);
170173
case "input":
171174
return (
172-
<StyledModalInputRowContainer>{children}</StyledModalInputRowContainer>
175+
<StyledModalInputRowContainer id={id}>
176+
{children}
177+
</StyledModalInputRowContainer>
173178
);
174179
case "list":
175180
return (
176-
<StyledModalInputRowContainer>{children}</StyledModalInputRowContainer>
181+
<StyledModalEditableList id={id}>{children}</StyledModalEditableList>
177182
);
178183

179184
default:
180185
return (
181186
<StyledModalRow
187+
id={id}
182188
color={theme.palette.text}
183189
buttonColor={theme.palette.primary}
184190
roundness={theme.roundness}

src/components/StatusBar/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export { default as StatusBar, StatusBarCustomUniverseSelector } from "./StatusBar";
1+
export {
2+
default as StatusBar,
3+
StatusBarCustomUniverseSelector,
4+
} from "./StatusBar";

0 commit comments

Comments
 (0)