File tree Expand file tree Collapse file tree 8 files changed +31
-9
lines changed
components/common/Nav/GenerationDropDown
pages/attendanceAdmin/session Expand file tree Collapse file tree 8 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 11export { default as DoSoptLogo } from './DoSoptLogo.svg' ;
22export { default as GoSoptLogo } from './GoSoptLogo.svg' ;
3+ export { default as NowSoptLogo } from './NowSoptLogo.svg' ;
34export { default as SoptMainLogo } from './SoptMainLogo.svg' ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useRouter } from 'next/router';
33import { useState } from 'react' ;
44
55import { IcNewDropdown } from '@/assets/icons' ;
6- import { DoSoptLogo } from '@/assets/icons/SoptLogos' ;
6+ import { NowSoptLogo } from '@/assets/icons/SoptLogos' ;
77import { useRecoilGenerationSSR } from '@/hooks/useRecoilGenerationSSR' ;
88import { GENERATION_INFO } from '@/utils/nav' ;
99
@@ -21,8 +21,8 @@ function GenerationDropDown() {
2121 const [ isDropdownOn , setIsDropdownOn ] = useState < boolean > ( false ) ;
2222
2323 const [ selectedGenerationInfo , setSelectedGenerationInfo ] = useState ( {
24- logo : < DoSoptLogo /> ,
25- slogan : 'DO' ,
24+ logo : < NowSoptLogo /> ,
25+ slogan : GENERATION_INFO [ 0 ] . slogan ,
2626 } ) ;
2727
2828 const handleSelectedGeneration = (
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ export const StSelectedGeneration = styled(GenerationContainer)`
4141 &:active {
4242 background-color: ${ colors . gray700 } ;
4343 }
44+
45+ & > svg > path > fill {
46+ border-radius: 0.7rem;
47+ }
4448` ;
4549
4650export const StDropdownGeneration = styled ( GenerationContainer ) `
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function SessionDetailPage() {
9898 ? prevStatus . secondRoundStatus
9999 : prevStatus . firstRoundStatus
100100 : ( attendances . find ( ( attendance ) => attendance . round === anotherRound )
101- ?. status as ATTEND_STATUS ) ;
101+ ?. status as ATTEND_STATUS ) ;
102102
103103 const firstRoundStatus = round === 1 ? status : anotherRoundStatus ;
104104 const secondRoundStatus = round === 2 ? status : anotherRoundStatus ;
@@ -246,7 +246,7 @@ function SessionDetailPage() {
246246 return ( ) => closeAttendance ( ) ;
247247 default :
248248 // eslint-disable-next-line prettier/prettier
249- return ( ) => { } ;
249+ return ( ) => { } ;
250250 }
251251 } ;
252252
Original file line number Diff line number Diff line change 11import { atom } from 'recoil' ;
22import { recoilPersist } from 'recoil-persist' ;
33
4+ import { ACTIVITY_GENERATION } from '@/utils/generation' ;
5+
46const sessionStorage =
57 typeof window !== 'undefined' ? window . sessionStorage : undefined ;
68
@@ -11,6 +13,6 @@ const { persistAtom } = recoilPersist({
1113
1214export const currentGenerationState = atom < string > ( {
1315 key : 'currentGenerationState' ,
14- default : '33' ,
16+ default : ACTIVITY_GENERATION ,
1517 effects_UNSTABLE : [ persistAtom ] ,
1618} ) ;
Original file line number Diff line number Diff line change 1- export const ACTIVITY_GENERATION : string = '33 ' ;
1+ export const ACTIVITY_GENERATION : string = '34 ' ;
22
3- export const GENERATION_LIST : string [ ] = [ '33' , '32' ] ;
3+ export const GENERATION_LIST : string [ ] = [ '34' , ' 33', '32' ] ;
Original file line number Diff line number Diff line change 11import { IcAlarmMenu , IcAttendanceMenu , IcOrgMenu } from '@/assets/icons' ;
2- import { DoSoptLogo , GoSoptLogo } from '@/assets/icons/SoptLogos' ;
2+ import { DoSoptLogo , GoSoptLogo , NowSoptLogo } from '@/assets/icons/SoptLogos' ;
33
44export const GENERATION_INFO = [
5+ {
6+ generation : '34' ,
7+ Logo : NowSoptLogo ,
8+ slogan : 'NOW' ,
9+ } ,
510 {
611 generation : '33' ,
712 Logo : DoSoptLogo ,
You can’t perform that action at this time.
0 commit comments