Skip to content

Commit 212c9fd

Browse files
authored
Merge pull request #106 from sopt-makers/dev
SOPT Web Admin 2.0.2
2 parents 45bd231 + 283afd9 commit 212c9fd

File tree

8 files changed

+31
-9
lines changed

8 files changed

+31
-9
lines changed
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export { default as DoSoptLogo } from './DoSoptLogo.svg';
22
export { default as GoSoptLogo } from './GoSoptLogo.svg';
3+
export { default as NowSoptLogo } from './NowSoptLogo.svg';
34
export { default as SoptMainLogo } from './SoptMainLogo.svg';

src/components/common/Nav/GenerationDropDown/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useRouter } from 'next/router';
33
import { useState } from 'react';
44

55
import { IcNewDropdown } from '@/assets/icons';
6-
import { DoSoptLogo } from '@/assets/icons/SoptLogos';
6+
import { NowSoptLogo } from '@/assets/icons/SoptLogos';
77
import { useRecoilGenerationSSR } from '@/hooks/useRecoilGenerationSSR';
88
import { 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 = (

src/components/common/Nav/GenerationDropDown/style.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

4650
export const StDropdownGeneration = styled(GenerationContainer)`

src/pages/attendanceAdmin/session/[id].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/recoil/atom.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { atom } from 'recoil';
22
import { recoilPersist } from 'recoil-persist';
33

4+
import { ACTIVITY_GENERATION } from '@/utils/generation';
5+
46
const sessionStorage =
57
typeof window !== 'undefined' ? window.sessionStorage : undefined;
68

@@ -11,6 +13,6 @@ const { persistAtom } = recoilPersist({
1113

1214
export const currentGenerationState = atom<string>({
1315
key: 'currentGenerationState',
14-
default: '33',
16+
default: ACTIVITY_GENERATION,
1517
effects_UNSTABLE: [persistAtom],
1618
});

src/utils/generation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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'];

src/utils/nav.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { IcAlarmMenu, IcAttendanceMenu, IcOrgMenu } from '@/assets/icons';
2-
import { DoSoptLogo, GoSoptLogo } from '@/assets/icons/SoptLogos';
2+
import { DoSoptLogo, GoSoptLogo, NowSoptLogo } from '@/assets/icons/SoptLogos';
33

44
export const GENERATION_INFO = [
5+
{
6+
generation: '34',
7+
Logo: NowSoptLogo,
8+
slogan: 'NOW',
9+
},
510
{
611
generation: '33',
712
Logo: DoSoptLogo,

0 commit comments

Comments
 (0)