This commit is contained in:
2024-11-06 16:15:44 +05:30
parent 90444ac8b7
commit 4dc6df4357
10 changed files with 64 additions and 31 deletions

View File

@@ -15,9 +15,9 @@ const DefaultLayout = ({ children }) => {
localStorage.setItem("light", true)
});
const {
isLoading,
} = useGetKPIDetailsQuery()
// const {
// isLoading,
// } = useGetKPIDetailsQuery()
const {
isLoading: dateDataLoading,
@@ -37,9 +37,10 @@ const DefaultLayout = ({ children }) => {
return (
isLoading || dateDataLoading || dailyDataLoading || isTransAllLoading ?<SplashScreen/>: <Box>
dateDataLoading || dailyDataLoading || isTransAllLoading ?<SplashScreen/>: <Box>
<NavBar />
<SlideFade
{/* <SlideFade
key={location.pathname}
initialScale={0.9}
finalScale={1.2}
@@ -50,9 +51,9 @@ const DefaultLayout = ({ children }) => {
delay: 0.1,
},
}}
>
> */}
{children}
</SlideFade>
{/* </SlideFade> */}
<Footer />
</Box>
);

View File

@@ -79,10 +79,10 @@ export const rubix = createApi({
}),
getSubnetAll: builder.query({
query: ({ pageNumber = 1, pageSize = 10 }) => `Analytics/Transactions/GetAll?pageNumber=${pageNumber}&pageSize=${pageSize}`,
providesTags: ["getTransAll"],
}),
// getSubnetAll: builder.query({
// query: ({ pageNumber = 1, pageSize = 10 }) => `Analytics/Transactions/GetAll?pageNumber=${pageNumber}&pageSize=${pageSize}`,
// providesTags: ["getTransAll"],
// }),
getSubnetById: builder.query({
query: ({id,pageNumber = 1, pageSize = 10 }) => `SubNet/Transactions/GetAll/${id}?pageNumber=${pageNumber}&pageSize=${pageSize}`,
@@ -92,7 +92,7 @@ export const rubix = createApi({
getSubnetAll: builder.query({
query: ({ pageNumber = 1, pageSize = 10, searchTerm }) => `SubNet/GetAllSubnetworks?pageNumber=${pageNumber}&pageSize=${pageSize}&searchFilter=${searchTerm || ""}`,
providesTags: ["getTransAll"],
providesTags: ["getSubnetTransAll"],
}),
// getSubnetAll: builder.query({

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -145,7 +145,7 @@ const NormalTable = ({
)
: data?.map((item, index) => (
<Tr
cursor={"pointer"}
// cursor={"pointer"}
transition={"0.2s all"}
maxH={8}
bg={index % 2 === 0 ? "" : "forestGreen.50"}

View File

@@ -7,11 +7,11 @@ const FullScreenLoaader = ({half}) => {
return (
<Box
backgroundImage={colorMode !== "light" ? !half&& `url(${bannerImage})` : "none"}
position={"relative"}
backgroundSize="contain"
backgroundRepeat="no-repeat"
// position={"relative"}
// backgroundSize="contain"
// backgroundRepeat="no-repeat"
h={half ? "50vh":"100vh"}
w={"100vw"}
// w={"100%"}
display={"flex"}
justifyContent={"center"}
alignItems={"center"}

View File

@@ -34,6 +34,7 @@ import { RiFileCopyFill } from "react-icons/ri";
import { motion, AnimatePresence } from "framer-motion"; // Import AnimatePresence and motion
import { useGnerateShortUrlMutation } from "../Services/api.service";
import ToastBox from "../components/ToastBox";
import { OPACITY_ON_LOAD } from "../Layout/animations";
const AnimatedBox = motion(HStack); // Create an animated HStack
@@ -155,7 +156,7 @@ const toast = useToast()
return (
<Box
{...OPACITY_ON_LOAD}
minH={"100vh"}
bg={colorMode === "light" ? "#f5f5f7" : "none"}
backgroundImage={{base:colorMode !== "light" ? `url(${bannerImageMobile})` : "none",md:colorMode !== "light" ? `url(${bannerImage})` : "none"}}

View File

@@ -1,21 +1,29 @@
import React from "react";
import { OPACITY_ON_LOAD } from "../Layout/animations";
import { Box, Image, useColorMode } from "@chakra-ui/react";
import logo from "../assets/images/rubix.png";
import logoLight from "../assets/images/rubixlogo.svg";
import rubixLoaders from "../assets/images/rubixLoader.gif";
import { Box, useColorMode } from "@chakra-ui/react";
import Lottie from "lottie-react";
import rubixAnimation from "../assets/images/rubixLoader.json"; // Replace with your JSON animation path
const SplashScreen = () => {
const { colorMode } = useColorMode();
const { colorMode } = useColorMode();
return <Box zIndex={1000} bg={'#fff'} h={'100vh'} display={'flex'} justifyContent={'center'} alignItems={'center'} {...OPACITY_ON_LOAD}>
<Image
src={colorMode === "light" ? rubixLoaders : rubixLoaders}
// width={"120px"}
width={{base:"50%",md : "25%"}}
/>
</Box>;
return (
<Box
zIndex={1000}
// bg={"#fff"}
h={"100vh"}
display={"flex"}
justifyContent={"center"}
alignItems={"center"}
{...OPACITY_ON_LOAD}
>
<Lottie
animationData={rubixAnimation}
loop={true} // Add any additional Lottie configurations here
style={{ width: colorMode === "light" ? "25%" : "25%" }}
/>
</Box>
);
};
export default SplashScreen;