forked from Muneerali199/Draftdeckai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix-button-text.mjs
More file actions
26 lines (18 loc) · 793 Bytes
/
Copy pathfix-button-text.mjs
File metadata and controls
26 lines (18 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import fs from 'fs';
const filePath = './components/presentation/presentation-generator.tsx';
let content = fs.readFileSync(filePath, 'utf8');
console.log('🔧 Fixing button text...\n');
// Replace the loading text
content = content.replace(
' Creating your presentation...',
" {slides.length > 0 ? 'Applying theme...' : 'Creating your presentation...'}"
);
console.log('✅ Updated loading text');
// Replace the button label
content = content.replace(
' Generate Professional Presentation',
" {slides.length > 0 ? 'Apply This Theme' : 'Generate Professional Presentation'}"
);
console.log('✅ Updated button label');
fs.writeFileSync(filePath, content, 'utf8');
console.log('\n✨ Button text fixed!\n');