-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #610 from idurar/feat/add-translate-hooks
🇩🇿 🇨🇳 🇺🇸 🇫🇷 translation for IDURAR ERP CRM 3.0.beta 🎉
- Loading branch information
Showing
103 changed files
with
2,120 additions
and
1,535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Result, Button } from 'antd'; | ||
import useLanguage from '@/lang/useLanguage'; | ||
import { useHistory } from 'react-router-dom'; | ||
|
||
export default function NotFound({ entity }) { | ||
const translate = useLanguage(); | ||
|
||
const history = useHistory(); | ||
|
||
return ( | ||
<Result | ||
status="404" | ||
title={translate('error_404')} | ||
subTitle={translate('Sorry the Page you requested does not exist')} | ||
extra={ | ||
<Button | ||
type="primary" | ||
onClick={() => { | ||
history.push(`/${entity?.toLowerCase()}`); | ||
}} | ||
> | ||
{translate('Back')} | ||
</Button> | ||
} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default function Visibility({ isVisible, children }) { | ||
const show = isVisible ? { display: 'block', opacity: 1 } : { display: 'none', opacity: 0 }; | ||
export default function Visibility({ isOpen, children }) { | ||
const show = isOpen ? { display: 'block', opacity: 1 } : { display: 'none', opacity: 0 }; | ||
return <div style={show}>{children}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const OPEN_MODAL = 'OPEN_MODAL'; | ||
export const CLOSE_MODAL = 'CLOSE_MODAL'; | ||
export const OPEN_MODAL = 'OPEN_PASSWORD_MODAL'; | ||
export const CLOSE_MODAL = 'CLOSE_PASSWORD_MODAL'; | ||
|
||
export const OPEN_PANEL = 'OPEN_PANEL'; | ||
export const CLOSE_PANEL = 'CLOSE_PANEL'; | ||
export const OPEN_PANEL = 'OPEN_PROFILE_PANEL'; | ||
export const CLOSE_PANEL = 'CLOSE_PROFILE_PANEL'; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.