rm ScheduleList component
This commit is contained in:
1 parent
e1778ba083
commit
2287e59b71
4 files changed
-33
No files matched your search
@@ -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 />
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
.schedule-selector {
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: var(--single-margin);
|
|
||||||
|
|
||||||
label{
|
|
||||||
margin: 0 .5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -13,9 +13,6 @@
|
|||||||
@import "components/ArticleTags";
|
@import "components/ArticleTags";
|
||||||
|
|
||||||
@import "content";
|
@import "content";
|
||||||
|
|
||||||
@import "schedule-selector";
|
|
||||||
|
|
||||||
@import "footer";
|
@import "footer";
|
||||||
|
|
||||||
// THEMES
|
// THEMES
|
||||||
|
|||||||
Reference in new issue
Block a user