MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / render

Method render

src/components/UploadMap.jsx:90–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 render() {
91 return (
92 <>
93 <MKBox component="section">
94 <Modal
95 open={this.state.isDialogOpen}
96 onClose={() => {
97 this.setState({ isDialogOpen: false });
98 }}
99 sx={{ display: "grid", placeItems: "center" }}
100 >
101 <Slide direction="down" in={this.state.isDialogOpen} timeout={500}>
102 <MKBox
103 position="relative"
104 width="fit-content"
105 display="flex"
106 flexDirection="column"
107 borderRadius="xl"
108 variant="gradient"
109 shadow="sm"
110 >
111 <MKBox p={3} textAlign="center">
112 <MKTypography variant="h4" mt={1} mb={1}>
113 Map Format Error
114 </MKTypography>
115 <MKTypography variant="body2">
116 Please ensure the map file is in the correct format by referring to this{" "}
117 <a href="/guide/map" target="_blank">
118 guide
119 </a>
120 .
121 </MKTypography>
122 </MKBox>
123 <Divider light sx={{ my: 0 }} />
124 <MKBox display="flex" justifyContent="right" py={1} px={1.5}>
125 <MKButton onClick={() => this.setState({ isDialogOpen: false })}>
126 ok, got it
127 </MKButton>
128 </MKBox>
129 </MKBox>
130 </Slide>
131 </Modal>
132 </MKBox>
133 <Grid
134 container
135 item
136 justifyContent="center"
137 xs={10}
138 lg={7}
139 mx="auto"
140 mt={3}
141 textAlign="center"
142 >
143 <MKTypography variant="h3" mb={1}>
144 Load map
145 </MKTypography>
146 </Grid>
147 <Grid container item xs={12} lg={10} sx={{ mx: "auto" }} justifyContent="center">

Callers

nothing calls this directly

Calls 3

openDropdownMethod · 0.95
closeDropdownMethod · 0.95
uploadMapMethod · 0.95

Tested by

no test coverage detected