Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c0b66eaf

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

map icon colors start

re #9741

Zobrazit rozdíly:

frontend/src/features/TrackingTool/Import/ImportLocationDialog.tsx
25 25
    websiteCatalogs: 'Website Catalogs',
26 26
}
27 27

  
28

  
29 28
const externalCatalogs = {
30
    'PLEIADES': 'Pleiades',
31
    'GEONAMES': 'Geonames',
32
    'CIGS': 'CIGS',
33
    'ANE': 'ANE'
29
    PLEIADES: 'Pleiades',
30
    GEONAMES: 'Geonames',
31
    CIGS: 'CIGS',
32
    ANE: 'ANE',
34 33
}
35 34

  
36 35
interface ImportData {
......
56 55
            if (importType === 'localCatalog') {
57 56
                values.externalCatalogType = undefined
58 57
            }
59

  
60

  
61 58
        },
62 59
    })
63 60

  
......
98 95
            <ThemeWrapper>
99 96
                <Paper>
100 97
                    <DialogTitle>
101
                    <Stack
98
                        <Stack
102 99
                            direction="row"
103 100
                            justifyContent="space-between"
104 101
                            alignItems="center"
105 102
                            spacing={1}
106 103
                        >
107
                            <Fragment>
108
                                Import Locations
109
                            </Fragment>
104
                            <Fragment>Import Locations</Fragment>
110 105
                            <IconButton onClick={onClose}>
111 106
                                <CloseIcon />
112 107
                            </IconButton>
......
153 148
                                md={3}
154 149
                                justifyContent="flex-end"
155 150
                            >
156
                                <Button variant="contained" type="submit" color="primary">
151
                                <Button
152
                                    variant="contained"
153
                                    type="submit"
154
                                    color="primary"
155
                                >
157 156
                                    Import
158 157
                                </Button>
159 158
                            </Grid>
......
174 173
                                            name="externalCatalogType"
175 174
                                            value={
176 175
                                                formik.values
177
                                                    .externalCatalogType || "PLEIADES"
176
                                                    .externalCatalogType ||
177
                                                'PLEIADES'
178 178
                                            }
179 179
                                            onChange={formik.handleChange}
180 180
                                            label="Catalog Type"
181 181
                                            size="small"
182 182
                                        >
183
                                            {Object.entries(externalCatalogs).map(
184
                                                ([key, value], idx) => (
185
                                                    <MenuItem
186
                                                        key={key}
187
                                                        value={key}
188
                                                    >
189
                                                        {value}
190
                                                    </MenuItem>
191
                                                )
192
                                            )}
183
                                            {Object.entries(
184
                                                externalCatalogs
185
                                            ).map(([key, value], idx) => (
186
                                                <MenuItem key={key} value={key}>
187
                                                    {value}
188
                                                </MenuItem>
189
                                            ))}
193 190
                                        </Select>
194 191
                                    </FormControl>
195 192
                                    <NameTextField />

Také k dispozici: Unified diff