Skip to content

Commit

Permalink
Merge pull request #248 from EveripediaNetwork/optimize-performance
Browse files Browse the repository at this point in the history
Improvement of the app performance
  • Loading branch information
Damola18 authored Apr 10, 2024
2 parents 26a2795 + 8456518 commit 7fba84d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const Home: NextPage = () => {
const graphData = prices?.[value]
const isFetchedData = useRef(false)
const { tvl } = useErc20()

const { totalHiiqSupply } = useLockOverview()
const [holders, setHolders] = useState<ChartDataType[]>([])
const [colorData, setColorData] = useState<ChartConstantNonTreasury>({})
Expand Down Expand Up @@ -209,6 +210,7 @@ const Home: NextPage = () => {
governance proposals, and more all through the IQ Dashboard.
</Text>
</Stack>

<BraindaoLogo3
mx={{ base: 'auto', lg: 'none' }}
h={{ base: '72px', lg: '8.125em' }}
Expand Down
1 change: 1 addition & 0 deletions src/app/dashboard/raffles/[raffle]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const RafflePage = ({ params }: { params: { raffle: string } }) => {
width="full"
height="175px"
fit="cover"
alt="raffle image"
/>
</Box>
<chakra.div
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/IQButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const IQButton = (props: ButtonProps) => {
src="/images/braindao-logo-4.svg"
alt="IQ"
width={25}
height={21}
height="21"
/>
{error ? (
<>Oh no, there was an error</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const DashboardLayout = (props: DashboardLayoutProps) => {
display={{ base: 'flex', md: 'none' }}
>
<Link href="/">
<Image src={`/images/${logoSrc}`} />
<Image src={`/images/${logoSrc}`} alt="braindao logo" />
</Link>
</Flex>
</chakra.div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/sidebar-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const SidebarItem = (props: SidebarItemProps) => {
role="group"
>
{typeof item.icon === 'string' ? (
<Image src={item.icon} boxSize="6" />
<Image src={item.icon} boxSize="6" alt="icon" />
) : (
<Icon as={item.icon} boxSize="6" />
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Sidebar = (props: SidebarProps) => {
borderColor={{ base: 'divider', md: 'transparent' }}
>
<Link href="https://braindao.org/" target="_blank" mx="auto">
<Image src={`/images/${logoSrc}`} />
<Image src={`/images/${logoSrc}`} alt="braindao logo" />
</Link>
<IQButton ml="auto" gap={1} display={{ md: 'none' }} />
<LanguageSwitch display={{ md: 'none' }} />
Expand Down
7 changes: 6 additions & 1 deletion src/components/gauges/brainyStakingElements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ export const NftImage = ({
borderColor="divider"
px={2}
>
<Image src={nftURI} borderRadius="12px" fallbackSrc={fallbackImage} />
<Image
src={nftURI}
borderRadius="12px"
fallbackSrc={fallbackImage}
alt="nft image"
/>
<Box w="full" px={{ base: 0 }} py={2}>
<Input
onChange={action}
Expand Down
1 change: 1 addition & 0 deletions src/components/gauges/mint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const Mint = () => {
<Image
borderRadius="12px"
fallbackSrc="/images/brainy-nft-image.png"
alt="nft image"
/>
<Box mt="6">
<Flex mb={6} direction="row" justifyContent="space-between">
Expand Down

0 comments on commit 7fba84d

Please sign in to comment.