mirror of
https://github.com/bendtherules/is-nifty-open.git
synced 2026-08-18 22:02:57 +00:00
Use better relative date + update todo dones
This commit is contained in:
@@ -33,11 +33,11 @@ export class NextOpenCloseMini extends React.Component<NextOpenCloseMiniProps, {
|
|||||||
|
|
||||||
renderDate(): JSX.Element[] {
|
renderDate(): JSX.Element[] {
|
||||||
const tmpNextDate = this.nextOpenOrCloseDate as moment.Moment;
|
const tmpNextDate = this.nextOpenOrCloseDate as moment.Moment;
|
||||||
var nextDateString = tmpNextDate.format("DD-MM-YYYY");
|
var nextDateString = tmpNextDate.from(this.xDay);
|
||||||
return [
|
return [
|
||||||
(
|
(
|
||||||
<div className="openCloseDecription" key="title">
|
<div className="openCloseDecription" key="title">
|
||||||
Next {this.getOpeningClosingString()} on
|
Next {this.getOpeningClosingString()}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
3. [X] Make responsive - text
|
3. [X] Make responsive - text
|
||||||
4. Fix favicon not coming (look into serviceworker)
|
4. Fix favicon not coming (look into serviceworker)
|
||||||
2. [X] Make opentoday to openXDay and move current day logic outside it
|
2. [X] Make opentoday to openXDay and move current day logic outside it
|
||||||
4. Add 2 more bottom sections
|
4. [X] Add 2 more bottom sections
|
||||||
1. Next day section (Use mini view of OpenXDay ??)
|
1. [X] Next day section (Use mini view of OpenXDay ??)
|
||||||
2. Next change day section
|
2. [X] Next change day section
|
||||||
9. Implement client-side routing
|
9. Implement client-side routing
|
||||||
1. [X] Route for open/close
|
1. [X] Route for open/close
|
||||||
1. Read main section xDay from URL route
|
1. Read main section xDay from URL route
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
5. Allow date picker to go to particular date
|
5. Allow date picker to go to particular date
|
||||||
6. Weekly view
|
6. Weekly view
|
||||||
7. Monthly view
|
7. Monthly view
|
||||||
10. Host at isnifty.com/open
|
10. [X] Host at isnifty.com/open
|
||||||
5. Fix filename improper casing
|
5. Fix filename improper casing
|
||||||
5. Load data from backend
|
5. Load data from backend
|
||||||
6. Add tests
|
6. Add tests
|
||||||
|
|||||||
Reference in New Issue
Block a user