Remove unused components and models for improved maintainability
- Deleted redundant components (`AddActionButton`, `AlertBox`, `AlertStack`, `BackButton`, `CancelButton`, and `CollapsableArea`) and related files. - Removed unused models (`Book`, `BookSerie`, `BookTables`, `Character`, and `Chapter`) to reduce codebase clutter. - Updated project structure and references to reflect these removals.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Dispatch, SetStateAction} from "react";
|
||||
import React, {Dispatch, SetStateAction} from "react";
|
||||
|
||||
interface CheckBoxProps {
|
||||
isChecked: boolean;
|
||||
@@ -27,15 +27,15 @@ export default function CheckBox(
|
||||
className="hidden"
|
||||
/>
|
||||
<label htmlFor={id}
|
||||
className={`block overflow-hidden h-6 rounded-full cursor-pointer transition-all duration-200 border-2 shadow-sm hover:shadow-md ${
|
||||
className={`block overflow-hidden h-6 rounded-full cursor-pointer transition-colors duration-150 border-2 ${
|
||||
isChecked
|
||||
? 'bg-primary border-primary shadow-primary/30'
|
||||
: 'bg-secondary/50 border-secondary hover:bg-secondary'
|
||||
? 'bg-primary border-primary'
|
||||
: 'bg-secondary border-secondary hover:bg-secondary'
|
||||
}`}
|
||||
>
|
||||
<span
|
||||
className={`absolute block h-5 w-5 rounded-full bg-white shadow-md transform transition-all duration-200 top-0.5 ${
|
||||
isChecked ? 'right-0.5 scale-110' : 'left-0.5'
|
||||
className={`absolute block h-5 w-5 rounded-full bg-text-primary transform transition-all duration-200 top-0.5 ${
|
||||
isChecked ? 'right-0.5' : 'left-0.5'
|
||||
}`}/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user