This commit is contained in:
Tomas Dvorak
2025-10-25 13:04:02 +02:00
parent 81389c108f
commit 3dcb05de76
3 changed files with 26 additions and 17 deletions
+2 -7
View File
@@ -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} />