-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from samcyn/feat/site
style(site): create wrapPageElement to group page layout
- Loading branch information
Showing
4 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
export { default as wrapPageElement } from './src/components/AppLayout'; | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import LayoutComponent from './wrapPageElement'; | ||
|
||
// tailwind css | ||
import './src/styles/global.css'; | ||
|
||
export const wrapPageElement = LayoutComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export { default as wrapPageElement } from './src/components/AppLayout'; | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import LayoutComponent from './wrapPageElement'; | ||
|
||
export const wrapPageElement = LayoutComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import React from 'react'; | ||
import AppLayout from './src/components/AppLayout'; | ||
|
||
const wrapPageElement = ({ element, props }) => <AppLayout {...props}>{element}</AppLayout>; | ||
|
||
export default wrapPageElement; |