Skip to content

Commit

Permalink
removed unused React
Browse files Browse the repository at this point in the history
make return coherent
  • Loading branch information
Fred Lefévère-Laoide authored and Fred Lefévère-Laoide committed Mar 5, 2025
1 parent 249462f commit 6b2bf8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/taipy-gui/src/components/Taipy/GuiDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/

import React, { useEffect } from "react";
import { useEffect } from "react";

import { createDownloadAction, createSendActionNameAction, FileDownloadProps } from "../../context/taipyReducers";
import { useDispatch, useModule } from "../../utils/hooks";
Expand Down
3 changes: 2 additions & 1 deletion taipy/gui/gui_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def notify(
system_notification: t.Optional[bool] = None,
duration: t.Optional[int] = None,
id: str = "",
) -> None:
) -> t.Optional[str]:
"""Send a notification to the user interface.
Arguments:
Expand Down Expand Up @@ -105,6 +105,7 @@ def notify(
return state._gui._notify(notification_type, message, system_notification, duration, id)
else:
_warn("'notify()' must be called in the context of a callback.")
return None


def close_notification(state: State, id: str) -> None:
Expand Down

0 comments on commit 6b2bf8a

Please sign in to comment.