Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wallet-mobile): linter #3753

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 27 additions & 21 deletions apps/wallet-mobile/src/features/ReviewTx/common/operations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export const StakeRegistrationOperation = ({
strike,
}: {
fee: Balance.Quantity
showWarning: boolean
strike: boolean
showWarning?: boolean
strike?: boolean
}) => {
const {styles} = useStyles()
const strings = useStrings()
Expand All @@ -44,7 +44,7 @@ export const StakeRegistrationOperation = ({
)
}

export const StakeDeregistrationOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const StakeDeregistrationOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -55,7 +55,7 @@ export const StakeDeregistrationOperation = ({showWarning, strike}: {showWarning
)
}

export const StakeRewardsWithdrawalOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const StakeRewardsWithdrawalOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -74,8 +74,8 @@ export const StakeDelegationOperation = ({
strike,
}: {
poolId: string
showWarning: boolean
strike: boolean
showWarning?: boolean
strike?: boolean
}) => {
const {styles} = useStyles()
const strings = useStrings()
Expand Down Expand Up @@ -106,7 +106,7 @@ export const generatePoolName = (poolInfo: FullPoolInfo) => {
return poolInfo.explorer != null ? `[${poolInfo.explorer.ticker}] ${poolInfo.explorer.name}` : null
}

export const AbstainOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const AbstainOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -117,7 +117,7 @@ export const AbstainOperation = ({showWarning, strike}: {showWarning: boolean; s
)
}

export const NoConfidenceOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const NoConfidenceOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -134,8 +134,8 @@ export const VoteDelegationOperation = ({
strike,
}: {
drepID: string
showWarning: boolean
strike: boolean
showWarning?: boolean
strike?: boolean
}) => {
const {styles} = useStyles()
const strings = useStrings()
Expand All @@ -159,8 +159,8 @@ export const DrepRegistrationOperation = ({
strike,
}: {
fee: Balance.Quantity
showWarning: boolean
strike: boolean
showWarning?: boolean
strike?: boolean
}) => {
const {styles} = useStyles()
const strings = useStrings()
Expand All @@ -179,7 +179,7 @@ export const DrepRegistrationOperation = ({
)
}

export const DrepDeregistrationOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const DrepDeregistrationOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -196,8 +196,8 @@ export const PoolRegistrationOperation = ({
strike,
}: {
fee: Balance.Quantity
showWarning: boolean
strike: boolean
showWarning?: boolean
strike?: boolean
}) => {
const {styles} = useStyles()
const strings = useStrings()
Expand All @@ -216,7 +216,7 @@ export const PoolRegistrationOperation = ({
)
}

export const PoolRetirementOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const PoolRetirementOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -226,7 +226,7 @@ export const PoolRetirementOperation = ({showWarning, strike}: {showWarning: boo
</View>
)
}
export const DrepUpdateOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const DrepUpdateOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -236,7 +236,7 @@ export const DrepUpdateOperation = ({showWarning, strike}: {showWarning: boolean
</View>
)
}
export const MoveInstantaneousRewardsOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const MoveInstantaneousRewardsOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -246,7 +246,13 @@ export const MoveInstantaneousRewardsOperation = ({showWarning, strike}: {showWa
</View>
)
}
export const CommitteeHotAuthorizationOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const CommitteeHotAuthorizationOperation = ({
showWarning,
strike,
}: {
showWarning?: boolean
strike?: boolean
}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -257,7 +263,7 @@ export const CommitteeHotAuthorizationOperation = ({showWarning, strike}: {showW
)
}

export const CommitteeColdResignOperation = ({showWarning, strike}: {showWarning: boolean; strike: boolean}) => {
export const CommitteeColdResignOperation = ({showWarning, strike}: {showWarning?: boolean; strike?: boolean}) => {
const {styles} = useStyles()
const strings = useStrings()

Expand All @@ -268,7 +274,7 @@ export const CommitteeColdResignOperation = ({showWarning, strike}: {showWarning
)
}

const Label = ({label, showWarning, strike}: {label: string; showWarning: boolean; strike: boolean}) => {
const Label = ({label, showWarning, strike}: {label: string; showWarning?: boolean; strike?: boolean}) => {
const {colors, styles} = useStyles()
return (
<View style={styles.operationLabelContainer}>
Expand Down
Loading