mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Narrow component prop types, remove unused props and dead code (#2838)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -4,14 +4,14 @@ import CaptureScript from '../components/CaptureScript.astro';
|
||||
interface Props {
|
||||
min?: number;
|
||||
max?: number;
|
||||
step?: number;
|
||||
value?: string | number;
|
||||
id?: string;
|
||||
connect?: boolean;
|
||||
class?: string;
|
||||
}
|
||||
|
||||
const { min = 0, max = 100, step = 10, value = 50, id, connect = false, class: className } = Astro.props;
|
||||
const { min = 0, max = 100, value = 50, id, connect = false, class: className } = Astro.props;
|
||||
const step = 10;
|
||||
|
||||
const values = String(value).split(',');
|
||||
const size = values.length;
|
||||
|
||||
Reference in New Issue
Block a user