Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💬 Update Information Texts for Bridges #385

Merged
merged 1 commit into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/components/ticker/MastodonForm.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { useQueryClient } from '@tanstack/react-query'
import React, { ChangeEvent, FC, FormEvent, useCallback } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
import { CheckboxProps, Form, InputOnChangeData } from 'semantic-ui-react'
import {
CheckboxProps,
Form,
InputOnChangeData,
Message,
} from 'semantic-ui-react'
import { Ticker, TickerMastodonFormData, useTickerApi } from '../../api/Ticker'
import useAuth from '../useAuth'

Expand Down Expand Up @@ -45,6 +50,15 @@ const MastodonForm: FC<Props> = ({ callback, ticker }) => {

return (
<Form id="configureMastodon" onSubmit={handleSubmit(onSubmit)}>
<Message info>
<Message.Header>Information</Message.Header>
<Message.Content>
You need to create a Application for Ticker in Mastodon. Go to your
profile settings in Mastodon. You find a menu point {`"`}Developer
{`"`} where you need to create an Application. After saving you see
the required secrets and tokens.
</Message.Content>
</Message>
<Form.Checkbox
defaultChecked={mastodon.active}
label="Active"
Expand Down
2 changes: 1 addition & 1 deletion src/components/ticker/TelegramCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TelegramCard: FC<Props> = ({ ticker }) => {
<Card fluid>
<Card.Content>
You are currently not connected to Telegram. New messages will not be
published to your channel.
published to your channel and old messages can not be deleted anymore.
</Card.Content>
<Card.Content extra>
<TelegramModalForm
Expand Down
2 changes: 1 addition & 1 deletion src/components/ticker/TwitterCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const TwitterCard: FC<Props> = ({ ticker }) => {
<Card fluid>
<Card.Content>
You are currently not connected to Twitter. New messages will not be
published to your account.
published to your account and old messages can not be deleted anymore.
</Card.Content>
<Card.Content extra>
<TwitterLogin
Expand Down