rm ScheduleList component

This commit is contained in:
tmshv committed 2020-02-18 12:15:28 +03:00
1 parent e1778ba083
commit 2287e59b71
4 files changed
-33

No files matched your search

-2
View File
@@ -24,8 +24,6 @@ const Page: NextPage<Props> = props => (
<title>{props.title}</title> <title>{props.title}</title>
</Head> </Head>
{/*<ScheduleList schedules={schedules}/>*/}
<Schedule {...props.data} /> <Schedule {...props.data} />
<Share /> <Share />
-20
View File
@@ -1,20 +0,0 @@
const React = require('react')
const text = require('../server/schedule').text
const ScheduleList = ({schedules}) => (
<div className="schedule-selector">
<ul>
{schedules.map((s, index) => (
<Schedule key={index} {...s}/>
))}
</ul>
</div>
)
const Schedule = ({url, semester, period}) => (
<li>
<a href={url}>{text({semester, period})}</a>
</li>
)
module.exports = ScheduleList
-8
View File
@@ -1,8 +0,0 @@
.schedule-selector {
text-align: center;
margin-bottom: var(--single-margin);
label{
margin: 0 .5em;
}
}
-3
View File
@@ -13,9 +13,6 @@
@import "components/ArticleTags"; @import "components/ArticleTags";
@import "content"; @import "content";
@import "schedule-selector";
@import "footer"; @import "footer";
// THEMES // THEMES