Skip to content

Commit 8cc47e9

Browse files
committed
chore: bit flow release banner added
1 parent c6b8adc commit 8cc47e9

File tree

6 files changed

+32
-39
lines changed

6 files changed

+32
-39
lines changed

backend/app/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,4 @@ private static function sideBarMenu()
216216
]
217217
];
218218
}
219-
}
219+
}

bit_smtp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: BIT SMTP
55
* Plugin URI: https://www.bitapps.pro/bit-smtp
66
* Description: Send email via SMTP using BIT SMTP plugin by Bit Apps
7-
* Version: 1.1.6
7+
* Version: 1.1.7
88
* Author: Bit Apps
99
* Author URI: https://bitapps.pro
1010
* Text Domain: bit-smtp
@@ -13,4 +13,4 @@
1313
* Domain Path: /languages
1414
* License: GPLv2 or later
1515
*/
16-
require_once plugin_dir_path(__FILE__) . 'backend/bootstrap.php';
16+
require_once plugin_dir_path(__FILE__) . 'backend/bootstrap.php';

frontend/src/pages/Layout/Layout.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ input[type='password']:focus {
179179
}
180180

181181
.footerBtn {
182-
background-color: #fcfbff;
182+
background-color: #fff8ec;
183183
border-bottom-left-radius: 10px;
184184
border-bottom-right-radius: 10px;
185185
height: 55px;

frontend/src/pages/Layout/Layout.tsx

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { useState } from 'react'
2+
import { useEffect, useState } from 'react'
33
import { NavLink, Outlet } from 'react-router-dom'
44
import request from '@common/helpers/request'
55
import Logo from '@resource/img/bitSmtpLogo.svg'
66
import exclusiveEarlyBirdOffer from '@resource/img/exclusiveEarlyBirdOffer.png'
77
import { Layout as AntLayout, Modal } from 'antd'
88
// eslint-disable-next-line import/no-extraneous-dependencies
9-
// import confetti from 'canvas-confetti'
9+
import confetti from 'canvas-confetti'
1010
import cls from './Layout.module.css'
1111

1212
function Header() {
1313
const [isModalOpen, setIsModalOpen] = useState(false)
14-
// const [hideNewProductBtn, setHideNewProductBtn] = useState(true)
14+
const [hideNewProductBtn, setHideNewProductBtn] = useState(true)
1515

16-
// const handleConfetti = () => {
17-
// confetti({
18-
// particleCount: 100,
19-
// spread: 70,
20-
// origin: { y: 0.6 },
21-
// zIndex: 1000
22-
// })
23-
// }
16+
const handleConfetti = () => {
17+
confetti({
18+
particleCount: 100,
19+
spread: 70,
20+
origin: { y: 0.6 },
21+
zIndex: 1000
22+
})
23+
}
2424

25-
// const showModal = () => {
26-
// setIsModalOpen(true)
27-
// handleConfetti()
28-
// }
25+
const showModal = () => {
26+
setIsModalOpen(true)
27+
handleConfetti()
28+
}
2929

3030
const handleOk = () => {
3131
setIsModalOpen(false)
@@ -45,17 +45,17 @@ function Header() {
4545
color: isActive ? '#fff' : ''
4646
})
4747

48-
// useEffect(() => {
49-
// request('new_product_nav_btn_visible_check', null, null, 'GET').then((res: any) => {
50-
// if (!res.data) {
51-
// setHideNewProductBtn(false)
52-
// }
53-
// })
54-
// }, [])
48+
useEffect(() => {
49+
request('new_product_nav_btn_visible_check', null, null, 'GET').then((res: any) => {
50+
if (!res.data) {
51+
setHideNewProductBtn(false)
52+
}
53+
})
54+
}, [])
5555

5656
const handleNewProductNavBtn = () => {
5757
request('hide_new_product_nav_btn')
58-
// setHideNewProductBtn(true)
58+
setHideNewProductBtn(true)
5959
setIsModalOpen(false)
6060
}
6161

@@ -82,7 +82,7 @@ function Header() {
8282
</NavLink>
8383
))}
8484
</div>
85-
{/* {!hideNewProductBtn ? (
85+
{!hideNewProductBtn ? (
8686
<div className={cls.bitSocialMenu}>
8787
<button type="button" onClick={() => showModal()} className={cls.btn}>
8888
New Product Launch
@@ -94,7 +94,7 @@ function Header() {
9494
</div>
9595
) : (
9696
''
97-
)} */}
97+
)}
9898
</div>
9999

100100
<Modal
@@ -105,21 +105,17 @@ function Header() {
105105
centered
106106
className="bit-social-release-modal"
107107
>
108-
<a
109-
href="https://bit-social.com/?utm_source=bit-smtp&utm_medium=inside-plugin&utm_campaign=early-bird-offer"
110-
target="_blank"
111-
rel="noreferrer"
112-
>
108+
<a href="https://bit-flows.com/" target="_blank" rel="noreferrer">
113109
<img src={exclusiveEarlyBirdOffer} alt="Bit Social Release Promotional Banner" width="100%" />
114110
</a>
115111
<div className={cls.footerBtn}>
116-
<a
112+
{/* <a
117113
href="https://bit-social.com/?utm_source=bit-smtp&utm_medium=inside-plugin&utm_campaign=early-bird-offer"
118114
target="_blank"
119115
rel="noreferrer"
120116
>
121117
{`Grab It Before It's Gone!`}
122-
</a>
118+
</a> */}
123119
<button
124120
type="button"
125121
className={cls.skipNewProductBtn}
-388 KB
Loading

readme.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ Yes, possible to send WordPress emails using Hotmail.
241241

242242
== Changelog ==
243243

244-
= 1.1.7 (11 Dec, 2024) =
245-
* Bit Social promotional banner removed
246-
247244
= 1.1.6 (01 Dec, 2024) =
248245
* Bit Social promotional banner updated
249246

0 commit comments

Comments
 (0)