Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bluewave-labs/guidefox
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b8249229bcc14d139d04f6185c70e9c3af8b05e9
Choose a base ref
..
head repository: bluewave-labs/guidefox
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 83a5e4abfa976143d4765b75c09aa503cf84ef3c
Choose a head ref
Showing with 6 additions and 6 deletions.
  1. +2 −2 frontend/src/scenes/errors/403.jsx
  2. +2 −2 frontend/src/scenes/errors/404.jsx
  3. +2 −2 frontend/src/scenes/errors/Error.jsx
4 changes: 2 additions & 2 deletions frontend/src/scenes/errors/403.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import { Error } from './Error'
import { ErrorComponent } from './Error'
import { NAVIGATE_403_URL, TEXT_403 } from './constant'

export const Error403 = () => {
return (
<Error text={TEXT_403} navigateUrl={NAVIGATE_403_URL} />
<ErrorComponent text={TEXT_403} navigateUrl={NAVIGATE_403_URL} />
)
}
4 changes: 2 additions & 2 deletions frontend/src/scenes/errors/404.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import { Error } from './Error';
import { ErrorComponent } from './Error';
import { NAVIGATE_404_URL, TEXT_404 } from './constant';

export const Error404 = () => {
return (
<Error text={TEXT_404} navigateUrl={NAVIGATE_404_URL} />
<ErrorComponent text={TEXT_404} navigateUrl={NAVIGATE_404_URL} />
)
}
4 changes: 2 additions & 2 deletions frontend/src/scenes/errors/Error.jsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import styles from './Error.module.scss';
import Button from '../../components/Button/Button';
import { useNavigate } from 'react-router';

export const Error = ({ text, navigateUrl }) => {
export const ErrorComponent = ({ text, navigateUrl }) => {
const navigate = useNavigate()
const errorButtonStyle = {
borderRadius: '8px',
@@ -29,7 +29,7 @@ export const Error = ({ text, navigateUrl }) => {
)
};

Error.propTypes = {
ErrorComponent.propTypes = {
text: PropTypes.string,
navigateUrl: PropTypes.string
}