~cytrogen/masto-fe

6a592083f1698f18821281d66d18a8233bf33848 — たいち ひ 2 years ago 0009b4b
[Glitch] Fix export style of `<LoadGap />` based on `<Domain />`

Port 4197b5e4c8d01806bd974d97a3b1e38eb3208f26 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
1 files changed, 17 insertions(+), 17 deletions(-)

M app/javascript/flavours/glitch/components/load_gap.tsx
M app/javascript/flavours/glitch/components/load_gap.tsx => app/javascript/flavours/glitch/components/load_gap.tsx +17 -17
@@ 16,21 16,21 @@ interface Props {
  intl: InjectedIntl;
}

export const LoadGap = injectIntl<Props>(
  ({ disabled, maxId, onClick, intl }) => {
    const handleClick = useCallback(() => {
      onClick(maxId);
    }, [maxId, onClick]);
const _LoadGap: React.FC<Props> = ({ disabled, maxId, onClick, intl }) => {
  const handleClick = useCallback(() => {
    onClick(maxId);
  }, [maxId, onClick]);

    return (
      <button
        className='load-more load-gap'
        disabled={disabled}
        onClick={handleClick}
        aria-label={intl.formatMessage(messages.load_more)}
      >
        <Icon id='ellipsis-h' />
      </button>
    );
  }
);
  return (
    <button
      className='load-more load-gap'
      disabled={disabled}
      onClick={handleClick}
      aria-label={intl.formatMessage(messages.load_more)}
    >
      <Icon id='ellipsis-h' />
    </button>
  );
};

export const LoadGap = injectIntl(_LoadGap);