Skip to content

Commit 6672ba5

Browse files
committed
use ant-design
1 parent a37afdc commit 6672ba5

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"devDependencies": {
1313
"@babel/preset-react": "^7.0.0",
14+
"antd": "^3.12.4",
1415
"axios": "^0.18",
1516
"bootstrap": "^4.0.0",
1617
"cross-env": "^5.1",

resources/js/components/Example.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import React, { Component } from 'react';
2+
import { DatePicker, Button } from 'antd'
23

34
export default class Example extends Component {
45
render() {
56
return (
67
<div className="container">
78
<div className="card-header">Example Component</div>
89
<div className="card-body">I'm an example component!</div>
10+
<DatePicker />
11+
<Button type="primary">Primary</Button>
912
</div>
1013
);
1114
}

resources/sass/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Variables
66
@import 'variables';
77

8+
@import '~antd/dist/antd.css';
89
// Bootstrap
910
@import '~bootstrap/scss/bootstrap';
1011

resources/views/welcome.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<meta name="csrf-token" content="{{ csrf_token() }}">
77
<title>React On Laravel</title>
8+
<link rel="stylesheet" href="{{asset('css/app.css')}}">
89
<script>
910
window.Laravel = <?php echo json_encode([
1011
'csrfToken' => csrf_token(),

0 commit comments

Comments
 (0)