Skip to content

Commit

Permalink
Merge pull request #566 from systemli/Add-Property-for-Bluesky-Profil…
Browse files Browse the repository at this point in the history
…e-URL

✨ Add Property for Bluesky Profile URL
  • Loading branch information
0x46616c6b authored Dec 4, 2023
2 parents 75f7b62 + bdc8cc7 commit ddf1436
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/Ticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface TickerInformation {
facebook: string
telegram: string
mastodon: string
bluesky: string
}

export interface TickerTelegram {
Expand Down
20 changes: 19 additions & 1 deletion src/components/ticker/TickerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import LocationSearch, { Result } from './LocationSearch'
import { MapContainer, Marker, TileLayer } from 'react-leaflet'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { Alert, Button, Checkbox, FormControlLabel, FormGroup, Grid, InputAdornment, Stack, TextField, Typography } from '@mui/material'
import { faComputerMouse, faEnvelope, faUser } from '@fortawesome/free-solid-svg-icons'
import { faComputerMouse, faEnvelope, faSquare, faUser } from '@fortawesome/free-solid-svg-icons'
import { faFacebook, faMastodon, faTelegram, faTwitter } from '@fortawesome/free-brands-svg-icons'

interface Props {
Expand All @@ -29,6 +29,7 @@ interface FormValues {
facebook: string
telegram: string
mastodon: string
bluesky: string
}
location: {
lat: number
Expand All @@ -51,6 +52,7 @@ const TickerForm: FC<Props> = ({ callback, id, ticker }) => {
facebook: ticker?.information.facebook,
telegram: ticker?.information.telegram,
mastodon: ticker?.information.mastodon,
bluesky: ticker?.information.bluesky,
},
location: {
lat: ticker?.location.lat || 0,
Expand Down Expand Up @@ -242,6 +244,22 @@ const TickerForm: FC<Props> = ({ callback, id, ticker }) => {
/>
</FormGroup>
</Grid>
<Grid item sm={6} xs={12}>
<FormGroup>
<TextField
{...register('information.bluesky')}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<FontAwesomeIcon icon={faSquare} />
</InputAdornment>
),
}}
label="Bluesky"
margin="dense"
/>
</FormGroup>
</Grid>
<Grid item xs={12}>
<Typography component="h6" variant="h6">
Location
Expand Down

0 comments on commit ddf1436

Please sign in to comment.