mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
gr
This commit is contained in:
@@ -116,7 +116,6 @@ const SetupPage: React.FC = () => {
|
||||
const [instagramUrl, setInstagramUrl] = useState('');
|
||||
const [youtubeUrl, setYoutubeUrl] = useState('');
|
||||
const [galleryUrl, setGalleryUrl] = useState('');
|
||||
const [galleryLabel, setGalleryLabel] = useState('Fotogalerie');
|
||||
|
||||
const toast = useToast();
|
||||
const navigate = useNavigate();
|
||||
@@ -293,7 +292,6 @@ const SetupPage: React.FC = () => {
|
||||
instagram_url: instagramUrl || undefined,
|
||||
youtube_url: youtubeUrl || undefined,
|
||||
gallery_url: galleryUrl || undefined,
|
||||
gallery_label: galleryLabel || undefined,
|
||||
// GPS location (optional)
|
||||
location_latitude: typeof gpsLat === 'number' ? gpsLat : undefined,
|
||||
location_longitude: typeof gpsLng === 'number' ? gpsLng : undefined,
|
||||
@@ -564,7 +562,7 @@ const SetupPage: React.FC = () => {
|
||||
</FormControl>
|
||||
<FormControl>
|
||||
<FormLabel>URL loga klubu</FormLabel>
|
||||
<Input value={clubLogoUrl} onChange={(e) => setClubLogoUrl(e.target.value)} />
|
||||
<Input id="clubLogoUrlInput" value={clubLogoUrl} onChange={(e) => setClubLogoUrl(e.target.value)} />
|
||||
<HStack mt={2} spacing={3}>
|
||||
<Button as="label" size="sm" leftIcon={<InfoOutlineIcon />}>
|
||||
Nahrát logo
|
||||
@@ -572,6 +570,7 @@ const SetupPage: React.FC = () => {
|
||||
type="file"
|
||||
display="none"
|
||||
accept="image/*,image/svg+xml,application/pdf"
|
||||
id="clubLogoFileInput"
|
||||
onChange={(e) => {
|
||||
const f = e.target.files?.[0] || null;
|
||||
// Process selected file
|
||||
@@ -695,10 +694,6 @@ const SetupPage: React.FC = () => {
|
||||
<Input placeholder="https://photos.example.com/club" value={galleryUrl} onChange={(e) => setGalleryUrl(e.target.value)} />
|
||||
<FormHelperText>Můžete použít libovolný web (SmugMug, Flickr, Google Photos, Zonerama...).</FormHelperText>
|
||||
</FormControl>
|
||||
<FormControl>
|
||||
<FormLabel>Popisek odkazu fotogalerie</FormLabel>
|
||||
<Input placeholder="Fotogalerie" value={galleryLabel} onChange={(e) => setGalleryLabel(e.target.value)} />
|
||||
</FormControl>
|
||||
</SimpleGrid>
|
||||
|
||||
<Divider my={6} />
|
||||
|
||||
Reference in New Issue
Block a user