mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-17 12:19:20 +00:00
[2/n][Storybook] Settings - EnvironmentVariables (#75)
This commit is contained in:
parent
8cb5eadfb2
commit
f01bdf2de7
@ -1,6 +1,11 @@
|
||||
import { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
import DisplayEnvironmentVariables from 'components/projects/project/settings/DisplayEnvironmentVariables';
|
||||
import {
|
||||
environmentVariable0,
|
||||
environmentVariable1,
|
||||
} from '../../MockStoriesData';
|
||||
import { Environment } from 'gql-client';
|
||||
|
||||
const meta: Meta<typeof DisplayEnvironmentVariables> = {
|
||||
title: 'Project/Settings/DisplayEnvironmentVariables',
|
||||
@ -20,6 +25,10 @@ const meta: Meta<typeof DisplayEnvironmentVariables> = {
|
||||
action: 'update',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
environment: Environment.Development,
|
||||
variables: [environmentVariable0, environmentVariable1],
|
||||
},
|
||||
};
|
||||
|
||||
export default meta;
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig, PluginOption } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [react()] as PluginOption[],
|
||||
resolve: {
|
||||
alias: {
|
||||
utils: '/src/utils',
|
||||
|
Loading…
Reference in New Issue
Block a user