-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae33b52
commit b4bee32
Showing
6 changed files
with
86 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { useWorkspacePaused } from '@/store/user'; | ||
import { useTranslation } from '@i18next-toolkit/react'; | ||
import React from 'react'; | ||
|
||
export const WorkspacePauseTip: React.FC = React.memo(() => { | ||
const { t } = useTranslation(); | ||
const paused = useWorkspacePaused(); | ||
|
||
if (!paused) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<div className="w-full rounded-b-lg bg-red-500 bg-opacity-60 py-0.5 text-center text-sm"> | ||
{t( | ||
'Current Workspace has been paused because of exceeding the quota. Please contact the administrator to upgrade your plan.' | ||
)} | ||
</div> | ||
); | ||
}); | ||
WorkspacePauseTip.displayName = 'WorkspacePauseTip'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ export const createUserSelect = { | |
id: true, | ||
name: true, | ||
settings: true, | ||
paused: true, | ||
}, | ||
}, | ||
}, | ||
|