website refactor
This commit is contained in:
@@ -24,9 +24,9 @@ apps/website/components/shared/
|
||||
|
||||
```typescript
|
||||
import { useDataFetching } from '@/components/shared/hooks/useDataFetching';
|
||||
import { LoadingWrapper } from '@/components/shared/state/LoadingWrapper';
|
||||
import { ErrorDisplay } from '@/components/shared/state/ErrorDisplay';
|
||||
import { EmptyState } from '@/components/shared/state/EmptyState';
|
||||
import { LoadingWrapper } from '@/ui/LoadingWrapper';
|
||||
import { ErrorDisplay } from '@/ui/ErrorDisplay';
|
||||
import { EmptyState } from '@/ui/EmptyState';
|
||||
|
||||
function MyPage() {
|
||||
const { data, isLoading, error, retry } = useDataFetching({
|
||||
@@ -45,7 +45,7 @@ function MyPage() {
|
||||
### 2. Using StateContainer (Recommended)
|
||||
|
||||
```typescript
|
||||
import { StateContainer } from '@/components/shared/state/StateContainer';
|
||||
import { StateContainer } from '@/ui/StateContainer';
|
||||
|
||||
function MyPage() {
|
||||
const { data, isLoading, error, retry } = useDataFetching({
|
||||
|
||||
Reference in New Issue
Block a user