@rileybathurst/paddle 1.8.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/paddle-top-bar.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import Markdown from "react-markdown";
|
|
|
3
3
|
|
|
4
4
|
// TODO this would be nice to be able to close but I dont have it right yet
|
|
5
5
|
// ! needs ranaming now I've removed the ...data or if it cant write why
|
|
6
|
+
// TODO: move this to be exported from paddle to each branch site
|
|
6
7
|
type PaddleTopBarTypes = {
|
|
7
8
|
strapiBranch: {
|
|
8
9
|
topbar: {
|
|
@@ -10,19 +11,17 @@ type PaddleTopBarTypes = {
|
|
|
10
11
|
topbar: string;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
RainCheck: string;
|
|
14
|
-
RainCheckDate: Date;
|
|
15
|
-
RainCheckReason: string;
|
|
16
14
|
};
|
|
17
15
|
}
|
|
18
16
|
export const PaddleTopBar = ({ strapiBranch }: PaddleTopBarTypes) => {
|
|
19
17
|
|
|
18
|
+
/* // TODO: move to weather day
|
|
20
19
|
const RainCheckDate = new Date(strapiBranch.RainCheck);
|
|
21
|
-
const currently = new Date();
|
|
20
|
+
const currently = new Date(); */
|
|
22
21
|
|
|
23
22
|
return (
|
|
24
23
|
<div className='top-bar'>
|
|
25
|
-
{RainCheckDate > currently ? (
|
|
24
|
+
{/* {RainCheckDate > currently ? (
|
|
26
25
|
<p className="rain-check">
|
|
27
26
|
<span className="rain-check-date">
|
|
28
27
|
{RainCheckDate.toLocaleDateString('en-US', {
|
|
@@ -49,12 +48,12 @@ export const PaddleTopBar = ({ strapiBranch }: PaddleTopBarTypes) => {
|
|
|
49
48
|
})}</span>
|
|
50
49
|
<span className="rain-check-reason">We're closed today due to {strapiBranch.RainCheckReason}</span>
|
|
51
50
|
</p>
|
|
52
|
-
) : (
|
|
51
|
+
) : ( */}
|
|
53
52
|
<Markdown>
|
|
54
53
|
{strapiBranch.topbar.data.topbar}
|
|
55
54
|
</Markdown>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
55
|
+
{/* )
|
|
56
|
+
} */}
|
|
58
57
|
</div>
|
|
59
58
|
)
|
|
60
59
|
}
|
package/src/styles/buttons.css
CHANGED