Skip to content

Commit

Permalink
Fixed window title issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul committed Nov 27, 2023
1 parent 4819826 commit 5224deb
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 39 deletions.
30 changes: 17 additions & 13 deletions renderer/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ import EditorLayout from '@/layouts/editor/Layout';
import SectionContainer from '@/layouts/editor/SectionContainer';
import AutographaContextProvider from '@/components/context/AutographaContext';
import ScribexContextProvider from '@/components/context/ScribexContext';
import Meta from '../src/Meta';

export default function ReferenceSelector() {
return (
<AuthenticationContextProvider>
<AutographaContextProvider>
<ProjectContextProvider>
<ReferenceContextProvider>
<EditorLayout>
<ScribexContextProvider>
<SectionContainer />
</ScribexContextProvider>
</EditorLayout>
</ReferenceContextProvider>
</ProjectContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
<>
<Meta />
<AuthenticationContextProvider>
<AutographaContextProvider>
<ProjectContextProvider>
<ReferenceContextProvider>
<EditorLayout>
<ScribexContextProvider>
<SectionContainer />
</ScribexContextProvider>
</EditorLayout>
</ReferenceContextProvider>
</ProjectContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
</>
);
}
18 changes: 11 additions & 7 deletions renderer/pages/newproject.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ import NewProject from '@/components/Projects/NewProject';
import AuthenticationContextProvider from '@/components/Login/AuthenticationContextProvider';
import ProjectContextProvider from '@/components/context/ProjectContext';
import AutographaContextProvider from '@/components/context/AutographaContext';
import Meta from '../src/Meta';

const newproject = () => (
<AuthenticationContextProvider>
<AutographaContextProvider>
<ProjectContextProvider>
<NewProject call="new" />
</ProjectContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
<>
<Meta />
<AuthenticationContextProvider>
<AutographaContextProvider>
<ProjectContextProvider>
<NewProject call="new" />
</ProjectContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
</>
);

export default newproject;
14 changes: 9 additions & 5 deletions renderer/pages/profile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import Profile from '@/modules/projects/Profile';
import AuthenticationContextProvider from '@/components/Login/AuthenticationContextProvider';
import ProjectContextProvider from '@/components/context/ProjectContext';
import Meta from '../src/Meta';

const profile = () => (
<AuthenticationContextProvider>
<ProjectContextProvider>
<Profile />
</ProjectContextProvider>
</AuthenticationContextProvider>
<>
<Meta />
<AuthenticationContextProvider>
<ProjectContextProvider>
<Profile />
</ProjectContextProvider>
</AuthenticationContextProvider>
</>
);

export default profile;
18 changes: 11 additions & 7 deletions renderer/pages/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ import ProjectList from '@/components/Projects/ProjectList';
import AuthenticationContextProvider from '@/components/Login/AuthenticationContextProvider';
import AutographaContextProvider from '@/components/context/AutographaContext';
import ProjectContextProvider from '@/components/context/ProjectContext';
import Meta from '../src/Meta';

const Projects = () => (
<AuthenticationContextProvider>
<AutographaContextProvider>
<ProjectContextProvider>
<ProjectList />
</ProjectContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
<>
<Meta />
<AuthenticationContextProvider>
<AutographaContextProvider>
<ProjectContextProvider>
<ProjectList />
</ProjectContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
</>
);

export default Projects;
18 changes: 11 additions & 7 deletions renderer/pages/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ import Sync from '@/components/Sync/Sync';
import AuthenticationContextProvider from '@/components/Login/AuthenticationContextProvider';
import AutographaContextProvider from '@/components/context/AutographaContext';
import SyncContextProvider from '@/components/context/SyncContext';
import Meta from '../src/Meta';

const projects = () => (
<AuthenticationContextProvider>
<AutographaContextProvider>
<SyncContextProvider>
<Sync />
</SyncContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
<>
<Meta />
<AuthenticationContextProvider>
<AutographaContextProvider>
<SyncContextProvider>
<Sync />
</SyncContextProvider>
</AutographaContextProvider>
</AuthenticationContextProvider>
</>
);

export default projects;

0 comments on commit 5224deb

Please sign in to comment.