Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement of the app performance #248

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading