|
|
|
@ -2,8 +2,6 @@ import { useState } from 'react' |
|
|
|
|
|
|
|
|
|
|
|
import { Link } from 'react-router-dom' |
|
|
|
import { Link } from 'react-router-dom' |
|
|
|
|
|
|
|
|
|
|
|
import { format } from 'date-fns' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { PAGES } from 'config' |
|
|
|
import { PAGES } from 'config' |
|
|
|
|
|
|
|
|
|
|
|
import { saveUserInfo } from 'requests' |
|
|
|
import { saveUserInfo } from 'requests' |
|
|
|
@ -11,6 +9,8 @@ import { saveUserInfo } from 'requests' |
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
import { useAuthStore } from 'features/AuthStore' |
|
|
|
import { useAuthStore } from 'features/AuthStore' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { getCurrentYear } from 'helpers' |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Body, |
|
|
|
ButtonsBlock, |
|
|
|
ButtonsBlock, |
|
|
|
@ -35,7 +35,7 @@ const Mailings = () => { |
|
|
|
|
|
|
|
|
|
|
|
if (!userInfo) return null |
|
|
|
if (!userInfo) return null |
|
|
|
|
|
|
|
|
|
|
|
const currentYear = format(new Date(), 'Y') |
|
|
|
const currentYear = getCurrentYear() |
|
|
|
|
|
|
|
|
|
|
|
const onUnsubscribe = async (isUnsubscribed: boolean) => { |
|
|
|
const onUnsubscribe = async (isUnsubscribed: boolean) => { |
|
|
|
if (!isUnsubscribed) { |
|
|
|
if (!isUnsubscribed) { |
|
|
|
|