Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
show grid lines by default in studio (#10500)
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-mitra authored Jul 2, 2024
1 parent 678adb3 commit 3a056b7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ All portions of the code written by the Ethereal Engine team are Copyright © 20
Ethereal Engine. All Rights Reserved.
*/

import React from 'react'
import React, { useEffect } from 'react'
import { useTranslation } from 'react-i18next'

import { getMutableState, useHookstate } from '@etherealengine/hyperflux'
Expand All @@ -42,6 +42,12 @@ const GridTool = () => {
rendererState.gridVisibility.set(!rendererState.gridVisibility.value)
}

useEffect(() => {
if (!rendererState.gridVisibility.value) {
rendererState.gridVisibility.set(true)
}
}, [])

return (
<div className="flex items-center bg-theme-surfaceInput">
<Button
Expand Down

0 comments on commit 3a056b7

Please sign in to comment.