Skip to content

Commit

Permalink
💄empty
Browse files Browse the repository at this point in the history
  • Loading branch information
noeypatt committed Apr 26, 2020
1 parent abc95f6 commit f5f92d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
28 changes: 17 additions & 11 deletions components/Empty.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ import Link from 'next/link';

const Empty = () => {
return (
<div className="warp-empty">
<div className="content-empty">
<img src="/static/empty.jpg" alt="empty" />
<div className="title-empty">
<h4>หน้ายังไม่พร้อมใช้งาน โปรดกลับสู่หน้าหลัก</h4>
</div>
</div>
<Link href="/">
<h5>หน้าหลัก</h5>
</Link>
</div>
<React.Fragment>
{
typeof document === 'undefined' ?
null :
<div className="warp-empty">
<div className="content-empty">
<img src="/static/empty.jpg" alt="empty" />
<div className="title-empty">
<h4>หน้ายังไม่พร้อมใช้งาน โปรดกลับสู่หน้าหลัก</h4>
</div>
</div>
<Link href="/">
<h5>หน้าหลัก</h5>
</Link>
</div>
}
</React.Fragment>
)
}
export default Empty;
2 changes: 1 addition & 1 deletion pages/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react'
import React from 'react'
import Dashboard from '../components/layout/dashboard';

const MainPage = () => {
Expand Down

1 comment on commit f5f92d8

@vercel
Copy link

@vercel vercel bot commented on f5f92d8 Apr 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.