Move schedule components to a separate directory
This commit is contained in:
parent
ad782899b2
commit
78064e3f8f
|
@ -1,4 +1,4 @@
|
||||||
import ScheduleChooser from './ScheduleChooser.jsx';
|
import ScheduleChooser from './Schedule/ScheduleChooser.jsx';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (<ScheduleChooser/>);
|
return (<ScheduleChooser/>);
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import useSchedule from './hooks/useSchedule.js';
|
import useSchedule from '../hooks/useSchedule.js';
|
||||||
import { getSpeakerName, isTrackHidden } from './utils.js';
|
import { getSpeakerName, isTrackHidden } from './utils.js';
|
||||||
import { Fragment } from 'react';
|
import { Fragment } from 'react';
|
||||||
import useScheduleTable from './hooks/useScheduleTable.js';
|
import useScheduleTable from '../hooks/useScheduleTable.js';
|
||||||
import Event from './Event.jsx';
|
import Event from './Event.jsx';
|
||||||
import defaultSpeaker from './assets/default-speaker.png';
|
import defaultSpeaker from '../assets/default-speaker.png';
|
||||||
import './Schedule.scss';
|
import './Schedule.scss';
|
||||||
import { langs } from './constants.js';
|
import { langs } from './constants.js';
|
||||||
|
|
|
@ -71,11 +71,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.schedule-en::after {
|
.schedule-en::after {
|
||||||
background: url('./assets/en_US.png');
|
background: url('../assets/en_US.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
.schedule-bg::after {
|
.schedule-bg::after {
|
||||||
background: url('./assets/bg_BG.png');
|
background: url('../assets/bg_BG.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
.schedule-avatar {
|
.schedule-avatar {
|
|
@ -1,4 +1,4 @@
|
||||||
import useConferences from './hooks/useConferences.js';
|
import useConferences from '../hooks/useConferences.js';
|
||||||
import Schedule from './Schedule.jsx';
|
import Schedule from './Schedule.jsx';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
|
@ -0,0 +1,3 @@
|
||||||
|
export const getSpeakerName = speaker => speaker.first_name.concat(' ').concat(speaker.last_name);
|
||||||
|
|
||||||
|
export const isTrackHidden = track => track.name.en === 'Other' || track.name.bg === 'Други';
|
|
@ -9,10 +9,6 @@ function sorter(a, b, fieldFn) {
|
||||||
|
|
||||||
export const dateSorter = key => (a, b) => sorter(a, b, item => Date.parse(item[key]));
|
export const dateSorter = key => (a, b) => sorter(a, b, item => Date.parse(item[key]));
|
||||||
|
|
||||||
export const getSpeakerName = speaker => speaker.first_name.concat(' ').concat(speaker.last_name);
|
|
||||||
|
|
||||||
export const isTrackHidden = track => track.name.en === 'Other' || track.name.bg === 'Други';
|
|
||||||
|
|
||||||
export function calculateProgress(...elements) {
|
export function calculateProgress(...elements) {
|
||||||
const totalCount = elements.length;
|
const totalCount = elements.length;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue