Skip to content

Commit 479bb9b

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update
Co-Authored-By: JehanKandy <jehankandy@gmail.com> Co-Authored-By: Anupa Gamage <125038143+Anupa1998@users.noreply.github.com>
1 parent 89ffa89 commit 479bb9b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const destinationAppTW = argv.destination || path.join(process.cwd(), 'src/');
1717
const sourcePR = argv.source || path.join(__dirname, 'PrivateRoute');
1818
const destinationPR = argv.destination || path.join(process.cwd(), 'src/components/PrivateRoute');
1919

20-
const sourceDash = argv.source || path.join(__dirname, 'PrivateRoute');
21-
const destinationDash = argv.destination || path.join(process.cwd(), 'src/components/PrivateRoute');
20+
const sourceDash = argv.source || path.join(__dirname, 'Dashboard');
21+
const destinationDash = argv.destination || path.join(process.cwd(), 'src/components/Dashboard');
2222

2323
const sourceBackendMysqlNoMVC = argv.source || path.join(__dirname, 'BackEndMysqlNoMVC/server');
2424
const destinationBackendMysqlNoMVC = argv.destination || path.join(process.cwd(), 'server/');
@@ -28,7 +28,8 @@ async function RunReactLoginSignIn() {
2828
try {
2929
await fs.copy(source, destination);
3030
await fs.copy(sourceApp, destinationApp);
31-
await fs.copy(sourcePR, destinationPR)
31+
await fs.copy(sourcePR, destinationPR);
32+
await fs.copy(sourceDash, destinationDash);
3233
console.log('The Login and SignUp templete Successfully Createed');
3334
} catch (err) {
3435
console.error('Error copying folder:', err);
@@ -42,6 +43,7 @@ async function RunReactLoginSignInTW() {
4243
await fs.copy(sourceTW, destinationTW);
4344
await fs.copy(sourceAppTW, destinationAppTW);
4445
await fs.copy(sourcePR, destinationPR);
46+
await fs.copy(sourceDash, destinationDash);
4547
console.log('The Login and SignUp templete Successfully Createed');
4648
} catch (err) {
4749
console.error('Error copying folder:', err);

0 commit comments

Comments
 (0)