-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(1146): prettier tabWidth changed to 2
- Loading branch information
Showing
20 changed files
with
499 additions
and
518 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,6 +1,6 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
tabWidth: 4, | ||
tabWidth: 2, | ||
semi: true, | ||
printWidth: 100, | ||
}; |
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
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
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import { useState } from 'react'; | ||
|
||
type useToggleReturn = { | ||
handleOpen: () => void; | ||
handleClose: () => void; | ||
handleToggle: () => void; | ||
isOpen: boolean; | ||
handleOpen: () => void; | ||
handleClose: () => void; | ||
handleToggle: () => void; | ||
isOpen: boolean; | ||
}; | ||
|
||
/** | ||
* A hook to handle typical ui state management like toggling, opening and closing | ||
*/ | ||
|
||
export const useToggle = (initialState = false): useToggleReturn => { | ||
const [isOpen, setIsOpen] = useState(initialState); | ||
const [isOpen, setIsOpen] = useState(initialState); | ||
|
||
const handleOpen = (): void => { | ||
setIsOpen(true); | ||
}; | ||
const handleOpen = (): void => { | ||
setIsOpen(true); | ||
}; | ||
|
||
const handleClose = (): void => { | ||
setIsOpen(false); | ||
}; | ||
const handleClose = (): void => { | ||
setIsOpen(false); | ||
}; | ||
|
||
const handleToggle = (): void => { | ||
setIsOpen((isOpen) => !isOpen); | ||
}; | ||
const handleToggle = (): void => { | ||
setIsOpen((isOpen) => !isOpen); | ||
}; | ||
|
||
return { | ||
handleOpen, | ||
handleClose, | ||
handleToggle, | ||
isOpen, | ||
}; | ||
return { | ||
handleOpen, | ||
handleClose, | ||
handleToggle, | ||
isOpen, | ||
}; | ||
}; |
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
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,31 +1,31 @@ | ||
import { | ||
Flex, | ||
FlexItem, | ||
Text, | ||
TextContent, | ||
TextVariants, | ||
Title, | ||
TitleSizes, | ||
Flex, | ||
FlexItem, | ||
Text, | ||
TextContent, | ||
TextVariants, | ||
Title, | ||
TitleSizes, | ||
} from '@patternfly/react-core'; | ||
|
||
import style from './appBanner.module.scss'; | ||
|
||
export const AppBanner = (): JSX.Element => { | ||
return ( | ||
<Flex alignItems={{ default: 'alignItemsCenter' }}> | ||
<FlexItem spacer={{ default: 'spacerLg' }}> | ||
<img src="/images/innovation_logo.svg" className={style.logo} /> | ||
</FlexItem> | ||
<FlexItem> | ||
<Title headingLevel="h6" size={TitleSizes['3xl']} className="pb-4 text-light"> | ||
Innovation Hub | ||
</Title> | ||
<TextContent> | ||
<Text component={TextVariants.small}> | ||
A place to share your ideas and find other passionate people | ||
</Text> | ||
</TextContent> | ||
</FlexItem> | ||
</Flex> | ||
); | ||
return ( | ||
<Flex alignItems={{ default: 'alignItemsCenter' }}> | ||
<FlexItem spacer={{ default: 'spacerLg' }}> | ||
<img src="/images/innovation_logo.svg" className={style.logo} /> | ||
</FlexItem> | ||
<FlexItem> | ||
<Title headingLevel="h6" size={TitleSizes['3xl']} className="pb-4 text-light"> | ||
Innovation Hub | ||
</Title> | ||
<TextContent> | ||
<Text component={TextVariants.small}> | ||
A place to share your ideas and find other passionate people | ||
</Text> | ||
</TextContent> | ||
</FlexItem> | ||
</Flex> | ||
); | ||
}; |
Oops, something went wrong.