-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
084784c
commit d691a33
Showing
20 changed files
with
61 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ body, | |
margin: 0; | ||
height: 100%; | ||
width: 100%; | ||
background-color: blueviolet; | ||
} | ||
|
||
.app { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
src/components/Models/AnimationModel/AnimationModel.container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
import React, { FC, Suspense, useState } from 'react'; | ||
import React, { FC } from 'react'; | ||
import { AnimationModel, AnimationModelProps } from './AnimationModel.component'; | ||
|
||
/** | ||
* Contains model to handle suspense fallback. | ||
*/ | ||
export const AnimationModelContainer: FC<AnimationModelProps> = (props) => { | ||
/* eslint-disable-next-line react/jsx-no-useless-fragment */ | ||
const [fallback, setFallback] = useState<JSX.Element>(<></>); | ||
|
||
return ( | ||
<Suspense fallback={fallback}> | ||
<AnimationModel setModelFallback={setFallback} {...props} /> | ||
</Suspense> | ||
export const AnimationModelContainer: FC<AnimationModelProps> = (props) => ( | ||
<AnimationModel {...props} /> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
src/components/Models/FloatingModel/FloatingModel.container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import React, { FC, Suspense, useState } from 'react'; | ||
import React, { FC, Suspense } from 'react'; | ||
import { FloatingModel, FloatingModelProps } from './FloatingModel.component'; | ||
|
||
/** | ||
* Contains model to handle suspense fallback. | ||
*/ | ||
export const FloatingModelContainer: FC<FloatingModelProps> = (props) => { | ||
/* eslint-disable-next-line react/jsx-no-useless-fragment */ | ||
const [fallback, setFallback] = useState<JSX.Element>(<></>); | ||
|
||
return ( | ||
<Suspense fallback={fallback}> | ||
<FloatingModel {...props} setModelFallback={setFallback} /> | ||
export const FloatingModelContainer: FC<FloatingModelProps> = (props) => ( | ||
<Suspense> | ||
<FloatingModel {...props} /> | ||
</Suspense> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
src/components/Models/HalfBodyModel/HalfBodyModel.container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import React, { FC, Suspense, useState } from 'react'; | ||
import React, { FC, Suspense } from 'react'; | ||
import { HalfBodyModel, HalfBodyModelProps } from './HalfBodyModel.component'; | ||
|
||
/** | ||
* Contains model to handle suspense fallback. | ||
*/ | ||
export const HalfBodyModelContainer: FC<HalfBodyModelProps> = (props) => { | ||
/* eslint-disable-next-line react/jsx-no-useless-fragment */ | ||
const [fallback, setFallback] = useState<JSX.Element>(<></>); | ||
|
||
return ( | ||
<Suspense fallback={fallback}> | ||
<HalfBodyModel setModelFallback={setFallback} {...props} /> | ||
export const HalfBodyModelContainer: FC<HalfBodyModelProps> = (props) => ( | ||
<Suspense> | ||
<HalfBodyModel {...props} /> | ||
</Suspense> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import React, { FC, Suspense, useState } from 'react'; | ||
import React, { FC, Suspense } from 'react'; | ||
import { PoseModel, PoseModelProps } from './PoseModel.component'; | ||
|
||
/** | ||
* Contains model to handle suspense fallback. | ||
*/ | ||
export const PoseModelContainer: FC<PoseModelProps> = (props) => { | ||
/* eslint-disable-next-line react/jsx-no-useless-fragment */ | ||
const [fallback, setFallback] = useState<JSX.Element>(<></>); | ||
|
||
return ( | ||
<Suspense fallback={fallback}> | ||
<PoseModel setModelFallback={setFallback} {...props} /> | ||
export const PoseModelContainer: FC<PoseModelProps> = (props) => ( | ||
<Suspense> | ||
<PoseModel {...props} /> | ||
</Suspense> | ||
); | ||
}; |
Oops, something went wrong.