Skip to content

Commit

Permalink
Prettier fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwaalkens committed Feb 8, 2024
1 parent 98df619 commit 9700aac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 27 deletions.
12 changes: 2 additions & 10 deletions src/app/Marine2/components/boxes/Tanks/Tanks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ const Tanks = ({ componentMode = "full", className }: Props) => {
useEffect(() => {
if (!windowSize.width || !windowSize.height) return

const orientation = windowSize.width > 3 * windowSize.height
? "horizontal"
: "vertical"
const orientation = windowSize.width > 3 * windowSize.height ? "horizontal" : "vertical"

setOrientation(orientation)

}, [windowSize])

if (componentMode === "compact") {
Expand All @@ -61,12 +58,7 @@ const Tanks = ({ componentMode = "full", className }: Props) => {
>
{filteredTanks.map((tank) => (
<div ref={tankRef} key={tank}>
<Tank
componentMode="compact"
key={tank}
tankInstanceId={Number(tank)}
parentSize={boxSize}
/>
<Tank componentMode="compact" key={tank} tankInstanceId={Number(tank)} parentSize={boxSize} />
</div>
))}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface Props {
}

const SizeChangeObserver = ({ children, onSizeChange, orientation, className = "", style }: Props) => {

const containerRef = useRef<HTMLDivElement>(null)

const [width, height] = useSize(containerRef)
Expand Down
32 changes: 16 additions & 16 deletions src/app/Marine2/components/ui/ProgressCircle/Styles.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { BreakpointStylesType } from "../../../utils/media"

export const Styles: BreakpointStylesType = {
default: {
percentage: "text-lg",
},
"xs-xs": {
percentage: "text-xl",
},
"md-s": {
percentage: "text-xxl",
},
"lg-m": {
percentage: "text-2xl",
},
}
import { BreakpointStylesType } from "../../../utils/media"

export const Styles: BreakpointStylesType = {
default: {
percentage: "text-lg",
},
"xs-xs": {
percentage: "text-xl",
},
"md-s": {
percentage: "text-xxl",
},
"lg-m": {
percentage: "text-2xl",
},
}

0 comments on commit 9700aac

Please sign in to comment.