diff --git a/src/Schedule/ScheduleChooser.jsx b/src/Schedule/ScheduleChooser.jsx
index 524b1e1..bc18e24 100644
--- a/src/Schedule/ScheduleChooser.jsx
+++ b/src/Schedule/ScheduleChooser.jsx
@@ -1,11 +1,12 @@
import PropTypes from 'prop-types';
import ScheduleLoader from './ScheduleLoader.jsx';
+import { langs } from './constants.js';
+import { useMemo, useState } from 'react';
+import { dateSorter } from '../utils.js';
+import useConferences from '../hooks/useConferences.js';
+import { getConferenceYear } from './utils.js';
-export default function ScheduleChooser({
- year = 2023,
- lang = 'bg',
-}) {
- /*
+export default function ScheduleChooser() {
const {
data,
error,
@@ -14,28 +15,26 @@ export default function ScheduleChooser({
const conferences = useMemo(() => Array.isArray(data) ? data.sort(dateSorter('start_date')) : data, [data]);
- const [ selectedConferenceId, setSelectedConferenceId ] = useState();
- const [ selectedLang, setSelectedLang ] = useState(lang);
+ const [ year, setYear ] = useState(2023);
+ const [ lang, setLang ] = useState('bg');
return (<>
-
-
-
{isLoading && Please wait...
}
{error && Error: {error}
}
{conferences && <>
-
-