Skip to content

Commit

Permalink
Dependabot/npm and yarn/npm minor 545ed8fa4c (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
eguerrant and dependabot[bot] authored Apr 11, 2024
1 parent 2a44ebf commit 97d25b6
Show file tree
Hide file tree
Showing 13 changed files with 495 additions and 504 deletions.
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"[python]": {
"editor.formatOnPaste": false,
"editor.codeActionsOnSave": {
"source.fixAll.ruff": true,
"source.organizeImports.ruff": true
"source.fixAll.ruff": "explicit",
"source.organizeImports.ruff": "explicit"
}
},
"python.languageServer": "Pylance",
Expand All @@ -25,4 +25,4 @@
"mypy-type-checker.args": [
"--config-file=.mypy.ini"
],
}
}
958 changes: 472 additions & 486 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/styled-components": "latest",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"react-app-alias": "^2.2.2",
"react-scripts": "latest",
"typescript": "latest"
Expand Down
4 changes: 2 additions & 2 deletions src/components/DateRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function ButtonField(props: ButtonFieldProps) {
);
}

interface DateRangeProps extends DatePickerProps<unknown> {
interface DateRangeProps extends DatePickerProps<Dayjs> {
startDate: Dayjs | null;
setStartDate: (newStartDate: Dayjs | null) => void;
endDate: Dayjs | null;
Expand Down Expand Up @@ -159,7 +159,7 @@ export default function DateRangePicker(props: DateRangeProps) {
setTmpStartDate(date);
}
}}
minDate={tmpStartDate && props.datesPicked % 2 != 0 ? tmpStartDate : null}
minDate={tmpStartDate && props.datesPicked % 2 != 0 ? tmpStartDate : undefined}
slots={{
day: HighlightDay as any,
field: ButtonField as any,
Expand Down
2 changes: 1 addition & 1 deletion src/components/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function NumberInput(props: NumberInputProps) {
defaultValue={props.default}
onChange={(event, val) => {
event.preventDefault();
props.setValue(val);
props.setValue(val ?? undefined);
}}
endAdornment={<InputAdornment>{props.endAdornment}</InputAdornment>}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/groups/AddRoles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function AddRolesDialog(props: AddRolesDialogProps) {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down Expand Up @@ -310,7 +310,7 @@ function AddRolesDialog(props: AddRolesDialogProps) {
filterOptions: (options) =>
options.filter((option) =>
disallowOwnerAdd && !isAccessAdmin(currentUser)
? !currentUserRoleMembershipIds.includes(option.id)
? !currentUserRoleMembershipIds.includes(option.id!)
: false || !roles.map((group) => group.id).includes(option.id),
),
onInputChange: (event, newInputValue, reason) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/groups/AddUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function AddUsersDialog(props: AddUsersDialogProps) {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/groups/BulkRenewal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ function BulkRenewalDialog(props: BulkRenewalDialogProps) {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/groups/CreateUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function GroupDialog(props: GroupDialogProps) {
getOptionLabel: (option) => option.name,
isOptionEqualToValue: (option, value) => option.id == value.id,
onInputChange: (event, newInputValue) => setAppSearchInput(newInputValue),
onChange: (event, value) => setAppName(value.name),
onChange: (event, value) => setAppName(value!.name),
}}
/>
</FormControl>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/requests/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function CreateRequestContainer(props: CreateRequestContainerProps) {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/requests/Read.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ export default function ReadRequest() {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down
11 changes: 8 additions & 3 deletions src/pages/roles/AddGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ function AddGroupsDialog(props: AddGroupsDialogProps) {
return out;
}, new Array<OktaGroup>()) ?? []
)
.filter((group) => ownerCantAddSelf(group.active_group_tags?.map((tagMap) => tagMap.active_tag!), props.owner))
.filter((group) =>
ownerCantAddSelf(
group.active_group_tags?.map((tagMap) => tagMap.active_tag!),
props.owner,
),
)
.map((group) => group.id!);

const currUserRoleGroupMember =
Expand Down Expand Up @@ -264,7 +269,7 @@ function AddGroupsDialog(props: AddGroupsDialogProps) {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down Expand Up @@ -304,7 +309,7 @@ function AddGroupsDialog(props: AddGroupsDialogProps) {
option.is_managed == true &&
(!groups.map((group) => group.id).includes(option.id) ||
(currUserRoleGroupMember && !isAccessAdmin(currentUser)
? !disallowedGroups.includes(option.id)
? !disallowedGroups.includes(option.id!)
: false)),
),
onInputChange: (event, newInputValue, reason) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/roles/BulkRenewal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ function BulkRenewalDialog(props: BulkRenewalDialogProps) {
<DatePickerElement
label="Custom End Date"
name="customUntil"
shouldDisableDate={(date) => date.isSameOrBefore(dayjs(), 'day')}
shouldDisableDate={(date: Dayjs) => date.isSameOrBefore(dayjs(), 'day')}
maxDate={timeLimit ? dayjs().add(timeLimit, 'second') : null}
required
/>
Expand Down

0 comments on commit 97d25b6

Please sign in to comment.