Skip to content

Commit 0a21766

Browse files
committed
Added templates for available feed source types
1 parent 8cd0b20 commit 0a21766

File tree

4 files changed

+120
-0
lines changed

4 files changed

+120
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { React } from "react";
2+
import PropTypes from "prop-types";
3+
import FormInput from "../../util/forms/form-input";
4+
5+
const CalendarFeedTypeTemplate = ({ handleInput, formStateObject, t }) => {
6+
return (
7+
<>
8+
<FormInput
9+
name="resources"
10+
type="text"
11+
label={t("dynamic-fields.CalendarFeedType.resources")}
12+
onChange={handleInput}
13+
value={formStateObject.feedSources}
14+
/>
15+
</>
16+
);
17+
};
18+
19+
20+
CalendarFeedTypeTemplate.propTypes = {
21+
handleInput: PropTypes.func,
22+
formStateObject: PropTypes.shape({
23+
feedSources: PropTypes.string,
24+
}),
25+
t: PropTypes.func,
26+
};
27+
export default CalendarFeedTypeTemplate;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { React } from "react";
2+
import PropTypes from "prop-types";
3+
import FormInput from "../../util/forms/form-input";
4+
5+
const EventDatabaseApiTemplate = ({ handleInput, formStateObject, t }) => {
6+
return (
7+
<>
8+
<FormInput
9+
name="host"
10+
type="text"
11+
label={t("dynamic-fields.eventDatabaseApi.host")}
12+
onChange={handleInput}
13+
value={formStateObject.host}
14+
/>
15+
</>
16+
);
17+
};
18+
19+
EventDatabaseApiTemplate.propTypes = {
20+
handleInput: PropTypes.func,
21+
formStateObject: PropTypes.shape({
22+
host: PropTypes.string,
23+
}),
24+
t: PropTypes.func,
25+
};
26+
export default EventDatabaseApiTemplate;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { React } from "react";
2+
import PropTypes from "prop-types";
3+
import FormInput from "../../util/forms/form-input";
4+
5+
const NotifiedFeedTypeTemplate = ({ handleInput, formStateObject, t }) => {
6+
return (
7+
<>
8+
<FormInput
9+
name="token"
10+
type="text"
11+
label={t("dynamic-fields.AppFeedNotifiedFeedType.token")}
12+
onChange={handleInput}
13+
value={formStateObject.token}
14+
/>
15+
</>
16+
);
17+
};
18+
19+
NotifiedFeedTypeTemplate.propTypes = {
20+
handleInput: PropTypes.func,
21+
formStateObject: PropTypes.shape({
22+
token: PropTypes.string,
23+
}),
24+
t: PropTypes.func,
25+
};
26+
export default NotifiedFeedTypeTemplate;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { React } from "react";
2+
import PropTypes from "prop-types";
3+
import FormInput from "../../util/forms/form-input";
4+
5+
const SparkleIOFeedTypeTemplate = ({ handleInput, formStateObject, t }) => {
6+
return (
7+
<>
8+
<FormInput
9+
name="BaseUrl"
10+
type="text"
11+
label={t("dynamic-fields.SparkleIOFeedType.baseUrl")}
12+
onChange={handleInput}
13+
value={formStateObject.notifiedFeedTypeToken}
14+
/>
15+
<FormInput
16+
name="clientId"
17+
type="text"
18+
label={t("dynamic-fields.SparkleIOFeedType.clientId")}
19+
onChange={handleInput}
20+
value={formStateObject.notifiedFeedTypeToken}
21+
/>
22+
<FormInput
23+
name="clientSecret"
24+
type="text"
25+
label={t("dynamic-fields.SparkleIOFeedType.clientSecret")}
26+
onChange={handleInput}
27+
value={formStateObject.notifiedFeedTypeToken}
28+
/>
29+
</>
30+
);
31+
};
32+
33+
34+
SparkleIOFeedTypeTemplate.propTypes = {
35+
handleInput: PropTypes.func,
36+
formStateObject: PropTypes.shape({
37+
notifiedFeedTypeToken: PropTypes.string,
38+
}),
39+
t: PropTypes.func,
40+
};
41+
export default SparkleIOFeedTypeTemplate;

0 commit comments

Comments
 (0)