diff --git a/frontend/src/ui/components/Field.tsx b/frontend/src/ui/components/Field.tsx new file mode 100644 index 0000000..6f0699c --- /dev/null +++ b/frontend/src/ui/components/Field.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +export interface FieldProps { + name?: string; +} + +function Field({ name, children }: React.PropsWithChildren) { + return ( +
+ {name ? : null} + {children} +
+ ); +} + +export default React.memo(Field); diff --git a/frontend/src/ui/pages/twitch/APISettings.tsx b/frontend/src/ui/pages/twitch/APISettings.tsx index bd92ac2..8427761 100644 --- a/frontend/src/ui/pages/twitch/APISettings.tsx +++ b/frontend/src/ui/pages/twitch/APISettings.tsx @@ -3,6 +3,7 @@ import React from 'react'; import { useDispatch } from 'react-redux'; import { useModule } from '../../../lib/react-utils'; import apiReducer, { modules } from '../../../store/api/reducer'; +import Field from '../../components/Field'; export default function TwitchBotSettingsPage( // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -18,7 +19,7 @@ export default function TwitchBotSettingsPage( return ( <>

Twitch module configuration

-
+ -
+

You will need to create an application, here's how:

@@ -54,8 +55,7 @@ export default function TwitchBotSettingsPage( - Once created, create a New Secret, then copy both fields below!

-
- +

-
-
- + +

-
+