Skip to content

Commit

Permalink
feat: update content mapper
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Mendiola <suki@missallsunday.com>
  • Loading branch information
MissAllSunday committed Jun 15, 2024
1 parent bc30b98 commit ce86484
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 64 deletions.
2 changes: 1 addition & 1 deletion Sources/Breeze/Breeze.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Breeze
public const SUPPORT_URL = 'https://missallsunday.com';
public const REACT_DOM_VERSION = '18.2.0';
public const REACT_VERSION = '18.2.0';
public const REACT_HASH = '07ff47b4';
public const REACT_HASH = 'd37a3248';
public const ACTIONS = [
'breezeStatus',
'breezeComment',
Expand Down
55 changes: 0 additions & 55 deletions Themes/default/scripts/breezeComponents/tabs.js

This file was deleted.

16 changes: 8 additions & 8 deletions src/components/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, {Children, JSXElementConstructor, ReactNode, useCallback, useEffect, useState} from 'react';
import React, { Children, JSXElementConstructor, ReactNode, useCallback, useEffect, useState } from 'react';

import { getStatus, ServerGetStatusResponse } from '../api/StatusApi';
import smfTextVars from '../DataSource/Txt';
import {showInfo} from "../utils/tooltip";
import {getStatus, ServerGetStatusResponse} from "../api/StatusApi";
import { showInfo } from '../utils/tooltip';

interface TabType {
index: number;
Expand Down Expand Up @@ -47,15 +47,15 @@ function Tabs(props: { children: ReactNode; }): any {
</li>
));

const mappedContent = tabs.map((tab: TabType) => (
<li key={tab.index} id={'#tab-' + tab.index} className={tab.active ? 'show' : 'hide'}>{tab.contentElement}</li>
));


const changeTab = useCallback((currentTab: TabType) => {

}, []);

const mappedContent = Children.map(props.children, child =>
<li className="Row">
{child}
</li>,
);

return <>

Expand Down

0 comments on commit ce86484

Please sign in to comment.