refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.95k stars 1.96k forks source link

feat(core): allow passing global app name and app icon #5993

Closed aliemir closed 1 month ago

aliemir commented 1 month ago

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

Changes

Added ability to pass global app name and icon values through <Refine /> component's options prop.

Now <Refine /> component accepts options.title prop that can be used to set app icon and app name globally. By default these values will be accessible through useRefineOptions hook and will be used in <ThemedLayoutV2 /> and <AuthPage /> components of the UI packages.

import { Refine } from "@refinedev/core";

const MyIcon = () => <svg>{/* ... */}</svg>;

const App = () => {
  return (
    <Refine
      options={{
        title: {
          icon: <MyIcon />,
          text: "Refine App",
        },
      }}
    >
      {/* ... */}
    </Refine>
  );
};

RK-634

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: e9b111368050c75305a0dc4d357e5ea290cfb0c9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | -------------------- | ----- | | @refinedev/core | Minor | | @refinedev/ui-tests | Patch | | @refinedev/ui-types | Patch | | @refinedev/chakra-ui | Minor | | @refinedev/mantine | Minor | | @refinedev/antd | Minor | | @refinedev/mui | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

cypress[bot] commented 1 month ago

Passing run #11161 ↗︎

0 379 37 0 Flakiness 0

Details:

Merge e9b111368050c75305a0dc4d357e5ea290cfb0c9 into a2e53d28174bbc584cae20621e48...
Project: refine Commit: 0cd891fa16 ℹ️
Status: Passed Duration: 21:54 💡
Started: May 29, 2024 1:39 PM Ended: May 29, 2024 2:01 PM

Review all test suite changes for PR #5993 ↗︎