-
-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing day view in calendar of event screen for both admin and …
…user portal (#1447) * Implemented logic * Done Changes * Added CSS * Revert Changes to Package.json * Fixed test file for event calender * Changed borders to gray instead of black * Changed colors and text style * Requested changes added * Added tests for the changes * Lint fix * Fixed failing coverage tests
- Loading branch information
Showing
8 changed files
with
689 additions
and
23 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/components/CurrentHourIndicator/CurrentHourIndicator.module.css
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,19 @@ | ||
.round { | ||
background-color: red; | ||
border-radius: 100%; | ||
width: 15px; | ||
height: 15px; | ||
} | ||
.line { | ||
width: 100%; | ||
height: 1px; | ||
background-color: red; | ||
margin: auto; | ||
} | ||
.container { | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
top: -8px; | ||
left: -9px; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/components/CurrentHourIndicator/CurrentHourIndicator.test.tsx
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,10 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import CurrentHourIndicator from './CurrentHourIndicator'; | ||
|
||
describe('Testing Current Hour Indicator', () => { | ||
test('Component Should be rendered properly', async () => { | ||
const { getByTestId } = render(<CurrentHourIndicator />); | ||
expect(getByTestId('container')).toBeInTheDocument(); | ||
}); | ||
}); |
13 changes: 13 additions & 0 deletions
13
src/components/CurrentHourIndicator/CurrentHourIndicator.tsx
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,13 @@ | ||
import React from 'react'; | ||
import styles from './CurrentHourIndicator.module.css'; | ||
|
||
const CurrentHourIndicator = (): JSX.Element => { | ||
return ( | ||
<div className={styles.container} data-testid="container"> | ||
<div className={styles.round}></div> | ||
<div className={styles.line}></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CurrentHourIndicator; |
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
Oops, something went wrong.