mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-26 09:55:52 +00:00
minor: remove versions older than 1.3.0 from what's new (#17227)
* minor: remove versions older than 1.3.0 from what's new * chore: update logic to get the latest version whats new data * chore: remove unused constant
This commit is contained in:
parent
904ed83ff7
commit
d2d0fba5c3
@ -21,7 +21,7 @@ import { ReactComponent as PlayIcon } from '../../../../assets/svg/ic-play-butto
|
|||||||
import { BLACK_COLOR, ROUTES } from '../../../../constants/constants';
|
import { BLACK_COLOR, ROUTES } from '../../../../constants/constants';
|
||||||
import { useAuth } from '../../../../hooks/authHooks';
|
import { useAuth } from '../../../../hooks/authHooks';
|
||||||
import { getReleaseVersionExpiry } from '../../../../utils/WhatsNewModal.util';
|
import { getReleaseVersionExpiry } from '../../../../utils/WhatsNewModal.util';
|
||||||
import { COOKIE_VERSION, LATEST_VERSION_ID, WHATS_NEW } from '../whatsNewData';
|
import { COOKIE_VERSION, WHATS_NEW } from '../whatsNewData';
|
||||||
import WhatsNewModal from '../WhatsNewModal';
|
import WhatsNewModal from '../WhatsNewModal';
|
||||||
|
|
||||||
const cookieStorage = new CookieStorage();
|
const cookieStorage = new CookieStorage();
|
||||||
@ -36,8 +36,8 @@ const WhatsNewAlert = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const latestVersion = useMemo(
|
const latestVersion = useMemo(
|
||||||
() => WHATS_NEW[LATEST_VERSION_ID],
|
() => WHATS_NEW[WHATS_NEW.length - 1], // latest version will be last in the array
|
||||||
[WHATS_NEW, LATEST_VERSION_ID]
|
[WHATS_NEW]
|
||||||
);
|
);
|
||||||
const isHomePage = useMemo(
|
const isHomePage = useMemo(
|
||||||
() => location.pathname.includes(ROUTES.MY_DATA),
|
() => location.pathname.includes(ROUTES.MY_DATA),
|
||||||
|
@ -24,7 +24,7 @@ import { VersionIndicatorIcon } from '../VersionIndicatorIcon.component';
|
|||||||
import ChangeLogs from './ChangeLogs';
|
import ChangeLogs from './ChangeLogs';
|
||||||
import FeaturesCarousel from './FeaturesCarousel';
|
import FeaturesCarousel from './FeaturesCarousel';
|
||||||
import './whats-new-modal.less';
|
import './whats-new-modal.less';
|
||||||
import { COOKIE_VERSION, LATEST_VERSION_ID, WHATS_NEW } from './whatsNewData';
|
import { COOKIE_VERSION, WHATS_NEW } from './whatsNewData';
|
||||||
import { ToggleType, WhatsNewModalProps } from './WhatsNewModal.interface';
|
import { ToggleType, WhatsNewModalProps } from './WhatsNewModal.interface';
|
||||||
|
|
||||||
const cookieStorage = new CookieStorage();
|
const cookieStorage = new CookieStorage();
|
||||||
@ -36,7 +36,7 @@ const WhatsNewModal: FunctionComponent<WhatsNewModalProps> = ({
|
|||||||
}: WhatsNewModalProps) => {
|
}: WhatsNewModalProps) => {
|
||||||
const { theme } = useApplicationStore();
|
const { theme } = useApplicationStore();
|
||||||
|
|
||||||
const [activeData, setActiveData] = useState(WHATS_NEW[LATEST_VERSION_ID]);
|
const [activeData, setActiveData] = useState(WHATS_NEW[WHATS_NEW.length - 1]); // latest version will be last in the array
|
||||||
const [checkedValue, setCheckedValue] = useState<ToggleType>(
|
const [checkedValue, setCheckedValue] = useState<ToggleType>(
|
||||||
ToggleType.FEATURES
|
ToggleType.FEATURES
|
||||||
);
|
);
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user