error boundary and table pagination

This commit is contained in:
Mikola
2024-03-19 16:39:36 +03:00
parent 6afccb19d8
commit 2a5991da1f
5 changed files with 16 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import React, { Component } from "react";
import { Fallback } from "./Fallback";
class ErrorBoundary extends Component {

View File

@@ -1,17 +1,16 @@
import React from "react";
import logo from "assets/images/logo/ITguild.svg";
import rightArrow from "assets/icons/arrows/arrowRight.svg";
import logo from "assets/images/logo/ITguild.svg";
import './fallback.scss'
import "./fallback.scss";
export const Fallback = () => {
return (
<div className="fallback">
<img src={logo} alt="logo" className="logo" />
<h1>Произошла непредвиденная ошибка</h1>
<a href='/profile'>
<a href="/profile">
Вернуться назад
<img src={rightArrow} alt="arrow" />
</a>