Update dependencies, refactor authentication, and enhance UI components
- Upgraded @reduxjs/toolkit to version 2.9.0 and added new dependencies including @techniker-me/pcast-api and moment. - Refactored authentication logic and added middleware for improved request handling. - Introduced new UI components such as buttons, loaders, and forms, along with a theme system following SOLID principles. - Updated routing to include protected routes and improved the login form with better error handling. - Removed unused CSS and organized the project structure for better maintainability.
This commit is contained in:
16
src/components/buttons/icon-buttons/add-button.tsx
Normal file
16
src/components/buttons/icon-buttons/add-button.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.
|
||||
*/
|
||||
import {IconButton} from './style';
|
||||
import addIcon from 'assets/images/icon/hash-plus.svg';
|
||||
|
||||
interface IAddButton {
|
||||
onClick: () => void;
|
||||
className: string;
|
||||
}
|
||||
|
||||
export const AddButton = ({onClick, className}: IAddButton): JSX.Element => (
|
||||
<IconButton onClick={onClick} className={className}>
|
||||
<img src={addIcon} alt={'Add'} />
|
||||
</IconButton>
|
||||
);
|
||||
Reference in New Issue
Block a user