Skip to content

Commit

Permalink
fix: linting errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Oct 29, 2024
1 parent ea20902 commit 880f73e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
3 changes: 2 additions & 1 deletion scripts/bootstrap/core.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import execBase from "child_process";
import path from "path";
import { fileURLToPath } from "url";
Expand Down Expand Up @@ -136,7 +137,7 @@ export async function run(
fallback = undefined as any
) {
try {
const { stdout, stderr } = await execAwait(command, { cwd: path });
const { stdout } = await execAwait(command, { cwd: path });
return stdout?.trim();
} catch (e) {
if (fallback === undefined) {
Expand Down
3 changes: 2 additions & 1 deletion scripts/bootstrap/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
Expand All @@ -7,7 +8,7 @@ import * as core from "./core";
/**
* Internal adrift version.
*/
export const adriftVersion = "0.11.581";
export const adriftVersion = "0.11.582";

/**
* Bumps the adrift `patch` version number using the total commit count.
Expand Down
14 changes: 0 additions & 14 deletions src/lib/hooks/usePrevious.ts

This file was deleted.

24 changes: 15 additions & 9 deletions src/view/components/native/WindowControls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type WindowControlsProps = {
* Used for frameless windows.
*/
export const WindowControls: FC<WindowControlsProps> = ({
type,
onClose,
onMinimize,
onMaximize
Expand Down Expand Up @@ -62,6 +61,7 @@ const styles = stylex.create({
alignItems: "center",
justifyContent: "center",
gap: "1rem",
// eslint-disable-next-line @stylexjs/valid-styles
"--runtime-draggable": "drag"
},
controlMac: {
Expand All @@ -74,25 +74,31 @@ const styles = stylex.create({
justifyContent: "center"
},
controlMacSvg: {
opacity: 0,
opacity: {
default: 0,
":hover": 1
},
width: "1.1rem",
height: "1.1rem",
transition: "opacity 150ms ease-in-out",
":hover": {
opacity: 1
}
transition: "opacity 150ms ease-in-out"
},
controlMacClose: {
backgroundColor: "#fc5753",
border: "0.1rem solid #df4744"
borderWidth: "0.1rem",
borderStyle: "solid",
borderColor: "#df4744"
},
controlMacMinimize: {
backgroundColor: "#fdbc40",
border: "0.1rem solid #de9f34"
borderWidth: "0.1rem",
borderStyle: "solid",
borderColor: "#de9f34"
},
controlMacMaximize: {
backgroundColor: "#33c748",
border: "0.1rem solid #27aa35"
borderWidth: "0.1rem",
borderStyle: "solid",
borderColor: "#27aa35"
// This button is sometimes gray ??!!
// backgroundColor: "#ded8dc",
// border: "0.1rem solid #cac4c8"
Expand Down

0 comments on commit 880f73e

Please sign in to comment.