Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceau committed Apr 15, 2024
1 parent 30af993 commit 5296405
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/renderer/containers/login_form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const LoginForm = ({ className, onSuccess, disableAutoFocus }: LoginFormP
label="Confirm password"
value={confirmPassword}
onChange={(e) => setConfirmPassword(e.target.value)}
type={"password"}
type="password"
fullWidth={true}
required={true}
/>
Expand Down
17 changes: 9 additions & 8 deletions src/renderer/pages/home/sidebar/ranked_status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ const InternalRankedStatus = ({
{...stylex.props(styles.stroke)}
variant="body1"
color={isFullAccess ? colors.greenDark : colors.textDim}
fontSize={"20px"}
fontWeight={"medium"}
fontSize="20px"
fontWeight="medium"
>
{isFullAccess ? "ACTIVE" : "STARTING SOON"}
</Typography>
Expand All @@ -110,16 +110,17 @@ const InternalRankedStatus = ({
<Typography
variant="h6"
color={colors.purpleLight}
fontSize={"14px"}
fontWeight={"semibold"}
marginBottom={"4px"}
className="14px"
fontSize="14px"
fontWeight="semibold"
marginBottom="4px"
>
{isFullAccess ? "ENDING IN" : "STARTING IN"}
</Typography>
<Typography fontWeight="medium" fontSize={"20px"}>
<Typography fontWeight="medium" fontSize="20px">
{countdown}
</Typography>
<Typography fontSize={"12px"} color={colors.textDim} marginTop={"-4px"}>
<Typography fontSize="12px" color={colors.textDim} marginTop="-4px">
{nextTime.toLocaleString(undefined, {
year: "numeric",
month: "numeric",
Expand All @@ -130,7 +131,7 @@ const InternalRankedStatus = ({
})}
</Typography>
</div>
<Typography fontSize={"11px"} color={colors.textDim} marginTop={"12px"}>
<Typography fontSize="11px" color={colors.textDim} marginTop="12px">
{isFullAccess
? "Ranked play is currently available for everyone. Try it now! Available once every 4 days."
: "Once every 4 days, ranked play is available to all users including non-subs. Check back soon!"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const ReplayFileStats = (props: ReplayFileStatsProps) => {
/>
<Content>
{!file || loading ? (
<LoadingScreen message={"Crunching numbers..."} />
<LoadingScreen message="Crunching numbers..." />
) : game.mode == GameMode.TARGET_TEST ? (
<TargetTestProfile file={file} stats={stadiumStats}></TargetTestProfile>
) : game.mode == GameMode.HOME_RUN_CONTEST ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const genChatMessageItem = (
let adornment = null;
if (isDefault) {
adornment = (
<Typography fontSize="12px" color={"#FFFFFFB0"} marginRight={"6px"} padding={"4px 8px"}>
<Typography fontSize="12px" color="#FFFFFFB0" marginRight="6px" padding="4px 8px">
Default
</Typography>
);
Expand Down Expand Up @@ -272,7 +272,7 @@ const ChatMessagesSection = ({
margin-bottom: 32px;
`}
>
<Typography fontSize={15} color={"#FFFFFFAA"} marginBottom={"5px"}>
<Typography fontSize={15} color="#FFFFFFAA" marginBottom="5px">
Chat Group: {capitalize(direction)}
</Typography>
<ChatMessageSelector
Expand Down

0 comments on commit 5296405

Please sign in to comment.