Skip to content

Commit f2c2dc7

Browse files
committed
fix(routes): update rich text content handling to display CMS data
1 parent 1407c12 commit f2c2dc7

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ overland/
9494

9595
```bash
9696
# Clone and setup
97-
git clone <your-repo-url>
97+
git clone https://github.com/alloy-lab/overland.git
9898
cd overland
9999
cp env.example .env
100100

apps/web/app/components/PerformanceMonitor.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ export function DevTools({
1919
useEffect(() => {
2020
if (!enabled) return;
2121

22-
// Add some initial test data for demonstration
23-
setMetrics([
24-
{ name: 'FCP', value: 1200, timestamp: Date.now() - 1000 },
25-
{ name: 'LCP', value: 2100, timestamp: Date.now() - 2000 },
26-
{ name: 'CLS', value: 0.05, timestamp: Date.now() - 3000 },
27-
]);
22+
// Initialize with empty metrics - will be populated by real performance data
23+
setMetrics([]);
2824

2925
// Listen for custom performance events
3026
const handlePerformanceEvent = (event: CustomEvent) => {

apps/web/app/lib/routes/pages.$slug.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export default function PagesDetail({
5555
)}
5656

5757
<div className='prose prose-lg max-w-none'>
58-
{/* Rich text content would be rendered here */}
58+
{/* Rich text content from CMS */}
5959
<div
6060
dangerouslySetInnerHTML={{
61-
__html: 'Rich text content rendering needed',
61+
__html: page.content || '<p>No content available.</p>',
6262
}}
6363
/>
6464
</div>

apps/web/app/routes/pages.$slug.simple.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ export default function PagesDetail({
112112
)}
113113

114114
<div className='prose prose-lg max-w-none'>
115-
{/* Rich text content would be rendered here */}
115+
{/* Rich text content from CMS */}
116116
<div
117117
dangerouslySetInnerHTML={{
118-
__html: 'Rich text content rendering needed',
118+
__html: page.content || '<p>No content available.</p>',
119119
}}
120120
/>
121121
</div>

apps/web/app/routes/pages.$slug.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ export default function PagesDetail({
116116
)}
117117

118118
<div className='prose prose-lg max-w-none'>
119-
{/* Rich text content would be rendered here */}
119+
{/* Rich text content from CMS */}
120120
<div
121121
dangerouslySetInnerHTML={{
122-
__html: 'Rich text content rendering needed',
122+
__html: page.content || '<p>No content available.</p>',
123123
}}
124124
/>
125125
</div>

apps/web/app/routes/pages.$slug.ultra-simple.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default function PagesDetail({
109109
<div className='prose prose-lg max-w-none'>
110110
<div
111111
dangerouslySetInnerHTML={{
112-
__html: 'Rich text content rendering needed',
112+
__html: page.content || '<p>No content available.</p>',
113113
}}
114114
/>
115115
</div>

0 commit comments

Comments
 (0)