diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8e59f6cc --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/packages/react/xr/src/layer.tsx b/packages/react/xr/src/layer.tsx index efdad360..687163c4 100644 --- a/packages/react/xr/src/layer.tsx +++ b/packages/react/xr/src/layer.tsx @@ -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(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)