Skip to content
Merged
Show file tree
Hide file tree
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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 22

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Dependencies
run: pnpm install

- name: Check
run: |
pnpm -r check:prettier
pnpm -r check:eslint

- name: Build
run: pnpm -r build
11 changes: 1 addition & 10 deletions packages/react/xr/src/layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,7 @@ export type XRLayerProperties = XRLayerOptions &
* #### `quality` - Property to configure for what type of content the layer should be optimized ("default", "text-optimized", "graphics-optimized").
*/
export const XRLayer = forwardRef<Mesh, XRLayerProperties>(function XRLayer(
{
src,
pixelWidth = 1024,
pixelHeight = 1024,
dpr = 1,
renderPriority = 0,
children,
customRender,
...props
},
{ src, pixelWidth = 1024, pixelHeight = 1024, dpr = 1, renderPriority = 0, children, customRender, ...props },
forwardedRef,
) {
const [hasSize, setHasSize] = useState(false)
Expand Down