|
|
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
|
|
|
|
|
|
import { useTranslation } from 'next-i18next';
|
|
|
|
|
|
-
|
|
|
import { RecentlyCreatedIcon } from '~/components/Icons/RecentlyCreatedIcon';
|
|
|
import { RecentCreated } from '~/components/RecentCreated/RecentCreated';
|
|
|
import styles from '~/components/UsersHomepageFooter.module.scss';
|
|
|
@@ -13,8 +12,8 @@ import { CompressIcon } from './Icons/CompressIcon';
|
|
|
import { ExpandIcon } from './Icons/ExpandIcon';
|
|
|
|
|
|
export type UsersHomepageFooterProps = {
|
|
|
- creatorId: string,
|
|
|
-}
|
|
|
+ creatorId: string;
|
|
|
+};
|
|
|
|
|
|
export const UsersHomepageFooter = (props: UsersHomepageFooterProps): JSX.Element => {
|
|
|
const { t } = useTranslation();
|
|
|
@@ -30,15 +29,8 @@ export const UsersHomepageFooter = (props: UsersHomepageFooterProps): JSX.Elemen
|
|
|
<i style={{ fontSize: '1.3em' }} className="fa fa-fw fa-bookmark-o"></i>
|
|
|
{t('footer.bookmarks')}
|
|
|
<span className="ms-auto ps-2 ">
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- className={`btn btn-sm grw-expand-compress-btn ${isExpanded ? 'active' : ''}`}
|
|
|
- onClick={() => setIsExpanded(!isExpanded)}
|
|
|
- >
|
|
|
- { isExpanded
|
|
|
- ? <ExpandIcon />
|
|
|
- : <CompressIcon />
|
|
|
- }
|
|
|
+ <button type="button" className={`btn btn-sm grw-expand-compress-btn ${isExpanded ? 'active' : ''}`} onClick={() => setIsExpanded(!isExpanded)}>
|
|
|
+ {isExpanded ? <ExpandIcon /> : <CompressIcon />}
|
|
|
</button>
|
|
|
</span>
|
|
|
</h2>
|
|
|
@@ -49,7 +41,7 @@ export const UsersHomepageFooter = (props: UsersHomepageFooterProps): JSX.Elemen
|
|
|
</div>
|
|
|
<div className="grw-user-page-list-m mt-5 d-edit-none">
|
|
|
<h2 id="recently-created-list" className="grw-user-page-header border-bottom pb-2 mb-3">
|
|
|
- <span style={{ fontSize: '1.1em' }} className="growi-custom-icons me-1">recently_created</span>
|
|
|
+ <span className="growi-custom-icons me-1">recently_created</span>
|
|
|
{t('footer.recently_created')}
|
|
|
</h2>
|
|
|
<div id="user-created-list" className={`page-list ${styles['page-list']}`}>
|