Skip to content
Snippets Groups Projects
Commit 18452c32 authored by Cliff Li's avatar Cliff Li
Browse files

Implement polythene components

parent 3ae3cd58
No related branches found
No related tags found
1 merge request!32Polythene components
import m from "mithril";
import { Button } from "polythene-mithril";
import "polythene-css"
const ButtonComponent = () => {
return Button;
}
export default ButtonComponent;
\ No newline at end of file
......@@ -3,7 +3,7 @@ import * as studydocs from '../../models/studydocs';
import { apiUrl } from '../../models/config';
import { isLoggedIn } from '../../models/auth';
import { Error401 } from '../errors';
import Button from '../../components/Button';
const tableHeadings = [
'title', 'lecture', 'professor', 'semester', 'author', 'download',
......@@ -38,7 +38,7 @@ export default class studydocList {
},
}, [
m('input', { type: 'text', oninput: m.withAttr('value', (value) => { this.search = value; }) }, ''),
m('button', { type: 'submit' }, 'Search'),
m(Button, { label: 'Search', type: 'submit' }),
]),
m('button', { onclick: () => m.route.set('/studydocuments/new') }, 'add new'),
m('table', [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment