11import styled from "@emotion/styled" ;
2- import * as Common from "@frontend/common" ;
32import { Button , CircularProgress , Divider } from "@mui/material" ;
43import { styled as muiStyled } from "@mui/material/styles" ;
54import { Suspense } from "@suspensive/react" ;
@@ -55,14 +54,6 @@ const SessionItem: React.FC<{ session: BackendSessionAPISchemas.SessionSchema }>
5554) ;
5655
5756export const SessionListPage : React . FC = ( ) => {
58- // @ts -ignore
59- const backendAdminAPIClient = Common . Hooks . BackendAPI . useBackendClient ( ) ;
60- // const [data, setData] = useState<BackendSessionAPISchemas.SessionSchema[]>([]);
61- const [ currentTag , setTag ] = useState < string | null > ( null ) ;
62- // @ts -ignore
63- const setOrUnsetTag = ( tag : string ) => setTag ( currentTag === tag ? null : tag ) ;
64- // const currentTagNames = data.map((d) => d.presentationType.name);
65-
6657 const [ selectedCategory , setSelectedCategory ] = useState < string > ( "전체" ) ;
6758
6859 const [ sessions , setSessions ] = useState < BackendSessionAPISchemas . SessionSchema [ ] > ( sessionDummyData ) ;
@@ -80,21 +71,6 @@ export const SessionListPage: React.FC = () => {
8071 setFilteredSessions ( newFilteredSessions ) ;
8172 } , [ selectedCategory ] ) ;
8273
83- // const sessionOnlyData = data
84- // .filter((d) => d.presentationType.name === "Session")
85- // .filter((d) => currentTag === null || currentTagNames.includes(d.presentationType.name));
86-
87- // @ts -ignore
88- // const tags = Array.from(new Set(data.flatMap((session) => session.presentationType.name))).sort();
89-
90- // useEffect(() => {
91- // const fetchData = async () => {
92- // const result = await SessionAPIs.sessionList(backendAdminAPIClient)();
93- // setData(result);
94- // };
95- // fetchData();
96- // }, [backendAdminAPIClient]);
97-
9874 const CategoryButton : React . FC < { category : string ; isSelected : boolean } > = ( { category, isSelected } ) => {
9975 return isSelected ? (
10076 < CategoryButtonSelectedStyle > { category } </ CategoryButtonSelectedStyle >
@@ -343,18 +319,17 @@ const SessionTitleContainer = styled.div`
343319 gap: 0.5rem;
344320 font-family: ${ ( { theme } ) => theme . typography . fontFamily } ;
345321 font-weight: bold;
346- font-size: 1rem ;
322+ font-size: 1.25rem ;
347323 }
348324` ;
349325
350326const SessionSpeakerContainer = styled . div `
351327 display: flex;
352328 align-items: center;
353329 justify-content: flex-start;
354- font-size: 0.6rem;
355330 kbd {
356331 padding-top: 0.25rem;
357- font-size: 0.6rem ;
332+ font-size: 0.8rem ;
358333 color: #4e869d;
359334 }
360335` ;
@@ -364,45 +339,16 @@ const TagContainer = styled.div`
364339 align-items: center;
365340 justify-content: flex-start;
366341 padding: 0.25rem 0;
367- gap: 0.25rem ;
342+ gap: 0.35rem ;
368343` ;
369344
370345const Tag = styled . kbd `
371346 background-color: white;
372347 padding: 0.2rem 0.4rem;
373- border-radius: 0.25rem;
374- font-size: 0.6rem;
348+ font-size: 0.75rem;
375349 font-family: ${ ( { theme } ) => theme . typography . fontFamily } ;
376350 color: ${ ( { theme } ) => theme . palette . primary . main } ;
377351 bordercolor: ${ ( { theme } ) => theme . palette . primary . main } ;
378352 border: 1px solid;
379353 border-radius: 15px;
380354` ;
381-
382- // @ts -ignore
383- const TagFilterBtnContainer = styled . div `
384- display: flex;
385- align-items: center;
386- justify-content: center;
387- ` ;
388-
389- // @ts -ignore
390- const TagFilterBtn = styled . button `
391- background-color: rgba(0, 0, 0, 0);
392- border: none;
393- outline: none;
394- padding: 0.25rem 0.5rem;
395- margin: 0.25rem;
396- font-size: 0.8rem;
397-
398- &:focus,
399- button::-moz-focus-inner {
400- outline: none !important;
401- }
402-
403- &.selected {
404- background-color: #b0a8fe;
405- color: black;
406- font-weight: bold;
407- }
408- ` ;
0 commit comments